Skip to content

Instantly share code, notes, and snippets.

@stevommmm
Created October 14, 2015 00:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevommmm/585e4715a9ff6420d105 to your computer and use it in GitHub Desktop.
Save stevommmm/585e4715a9ff6420d105 to your computer and use it in GitHub Desktop.
BastilleGiant rEntityBoss = new BastilleGiant(rWorld);
rEntityBoss = rEntityBoss
.ignoreDamageSource(DamageSource.FIRE)
.ignoreDamageSource(DamageSource.LAVA)
.ignoreDamageSource(DamageSource.BURN)
.maxhealth(2000.0D)
.health(2000.0F)
.speed(0.20F)
.damage(4D)
.emtpyGoals()
.addGoal(0, new PathfinderGoalFloat(rEntityBoss))
.addGoal(2, new PathfinderGoalMeleeAttack(rEntityBoss, EntityHuman.class, 1.0D, false))
.addGoal(5, new PathfinderGoalMoveTowardsRestriction(rEntityBoss, 1.0D))
.addGoal(8, new PathfinderGoalLookAtPlayer(rEntityBoss, EntityHuman.class, 8.0F))
.addGoal(8, new PathfinderGoalRandomLookaround(rEntityBoss));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment