Skip to content

Instantly share code, notes, and snippets.

@RingOfStorms
Created November 27, 2013 09:23
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 RingOfStorms/3d8484134059bcb6c840 to your computer and use it in GitHub Desktop.
Save RingOfStorms/3d8484134059bcb6c840 to your computer and use it in GitHub Desktop.
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