-
-
Save RingOfStorms/3d8484134059bcb6c840 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final Item haloItem = p.getWorld().dropItemNaturally(p.getEyeLocation(), new ItemStack(Material.GOLD_BLOCK)); | |
haloItem.setPickupDelay(Integer.MAX_VALUE); | |
Slime s = (Slime) p.getWorld().spawnEntity(p.getEyeLocation(), EntityType.SLIME); | |
Slime s2 = (Slime) p.getWorld().spawnEntity(p.getEyeLocation(), EntityType.SLIME); | |
s.setSize(1); | |
s.addPotionEffect(new PotionEffect(PotionEffectType.INVISIBILITY, Integer.MAX_VALUE, 1), true); | |
s2.setSize(1); | |
s2.addPotionEffect(new PotionEffect(PotionEffectType.INVISIBILITY, Integer.MAX_VALUE, 1), true); | |
p.setPassenger(s); | |
s.setPassenger(s2); | |
s2.setPassenger(haloItem); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment