Skip to content

Instantly share code, notes, and snippets.

@tripulse
Last active September 20, 2020 09:01
Show Gist options
  • Save tripulse/17451c0119a99b9233797cc062634eff to your computer and use it in GitHub Desktop.
Save tripulse/17451c0119a99b9233797cc062634eff to your computer and use it in GitHub Desktop.
Just test file for my top secret illuminati project XD.
//# Minecraft.js #//
{
text: "Enderman",
entityID: "generic.entity.enderman"
position: [ 0x1af, 0xacf, 0x41f ],
maxHealth: 0x14,
id: getRandomEntityID(this.entityType, +new Date()),
behaviour: 'if this entity face is looked by player then attack, if this entity face is attacked by another entity then attack',
}
//....
@tripulse
Copy link
Author

if(entity.isStaredBy(Entity.FACE, player) || entity.attackedBy(player))
   entity.attack(player);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment