Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
CreatureChat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Public
CreatureChat
Commits
4c63e1dc
Commit
4c63e1dc
authored
Jul 03, 2024
by
Jonathan Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing ShulkerEntity to use native attacks (when attacking or protecting)
parent
6dbb44f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
AttackPlayerGoal.java
src/main/java/com/owlmaddie/goals/AttackPlayerGoal.java
+5
-1
No files found.
src/main/java/com/owlmaddie/goals/AttackPlayerGoal.java
View file @
4c63e1dc
...
...
@@ -6,6 +6,7 @@ import net.minecraft.entity.ai.goal.Goal;
import
net.minecraft.entity.mob.Angerable
;
import
net.minecraft.entity.mob.HostileEntity
;
import
net.minecraft.entity.mob.MobEntity
;
import
net.minecraft.entity.passive.GolemEntity
;
import
net.minecraft.particle.ParticleTypes
;
import
net.minecraft.server.world.ServerWorld
;
import
net.minecraft.sound.SoundEvents
;
...
...
@@ -76,7 +77,10 @@ public class AttackPlayerGoal extends Goal {
private
boolean
hasNativeAttacks
()
{
// Does this entity have native attacks
return
this
.
attackerEntity
instanceof
HostileEntity
||
this
.
attackerEntity
instanceof
Angerable
||
this
.
attackerEntity
instanceof
RangedAttackMob
;
return
this
.
attackerEntity
instanceof
HostileEntity
||
this
.
attackerEntity
instanceof
Angerable
||
this
.
attackerEntity
instanceof
RangedAttackMob
||
this
.
attackerEntity
instanceof
GolemEntity
;
}
private
void
performAttack
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment