Advertisement
TNT_Block

Bomb

Apr 17th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. public static ItemStack generateBomb(String mob) {
  2. ItemStack itm = new ItemStack(Blocks.mob_spawner,1,0);
  3. NBTTagCompound base = new NBTTagCompound();
  4. NBTTagCompound BlockEntityTag = new NBTTagCompound();
  5. NBTTagCompound SpawnData = new NBTTagCompound();
  6. NBTTagCompound Riding = new NBTTagCompound();
  7. BlockEntityTag.setInteger("SpawnCount", 5000);
  8. BlockEntityTag.setInteger("MaxNearbyEntities", 6);
  9. BlockEntityTag.setInteger("SpawnRange", 3);
  10. BlockEntityTag.setInteger("Delay", 1);
  11. BlockEntityTag.setInteger("MinSpawnDelay", 1);
  12. BlockEntityTag.setInteger("MaxSpawnDelay", 1);
  13. BlockEntityTag.setInteger("RequiredPlayerRange", 6);
  14. BlockEntityTag.setString("EntityId", "PrimedTnt");
  15. SpawnData.setInteger("Fuse", 120);
  16. Riding.setString("id", mob);
  17. Riding.setString("CustomName", "§aBombe!!!");
  18. SpawnData.setTag("Riding", Riding);
  19. BlockEntityTag.setTag("SpawnData", SpawnData);
  20. base.setTag("BlockEntityTag", BlockEntityTag);
  21. base.setInteger("HideFlags", 63);
  22. itm.setTagCompound(base);
  23. itm.setStackDisplayName("§eAttentat");
  24. return itm;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement