Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static ItemStack generateBomb(String mob) {
- ItemStack itm = new ItemStack(Blocks.mob_spawner,1,0);
- NBTTagCompound base = new NBTTagCompound();
- NBTTagCompound BlockEntityTag = new NBTTagCompound();
- NBTTagCompound SpawnData = new NBTTagCompound();
- NBTTagCompound Riding = new NBTTagCompound();
- BlockEntityTag.setInteger("SpawnCount", 5000);
- BlockEntityTag.setInteger("MaxNearbyEntities", 6);
- BlockEntityTag.setInteger("SpawnRange", 3);
- BlockEntityTag.setInteger("Delay", 1);
- BlockEntityTag.setInteger("MinSpawnDelay", 1);
- BlockEntityTag.setInteger("MaxSpawnDelay", 1);
- BlockEntityTag.setInteger("RequiredPlayerRange", 6);
- BlockEntityTag.setString("EntityId", "PrimedTnt");
- SpawnData.setInteger("Fuse", 120);
- Riding.setString("id", mob);
- Riding.setString("CustomName", "§aBombe!!!");
- SpawnData.setTag("Riding", Riding);
- BlockEntityTag.setTag("SpawnData", SpawnData);
- base.setTag("BlockEntityTag", BlockEntityTag);
- base.setInteger("HideFlags", 63);
- itm.setTagCompound(base);
- itm.setStackDisplayName("§eAttentat");
- return itm;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement