Advertisement
TNT_Block

PoopSpawner

Apr 17th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. public static ItemStack itm = new ItemStack(Blocks.mob_spawner, 1, 0);
  2.  
  3. public static void execute(Integer Count, Integer Delay, Integer Range)
  4. throws NBTException
  5. {
  6. NBTTagCompound base = new NBTTagCompound();
  7. NBTTagCompound BlockEntityTag = new NBTTagCompound();
  8. NBTTagCompound SpawnData = new NBTTagCompound();
  9. NBTTagList Equipment = new NBTTagList();
  10. BlockEntityTag.setInteger("SpawnCount", Count.intValue());
  11. BlockEntityTag.setInteger("SpawnRange", Range.intValue());
  12. BlockEntityTag.setInteger("Delay", Delay.intValue());
  13. BlockEntityTag.setString("EntityId", "ArmorStand");
  14. Equipment.appendTag(JsonToNBT.func_180713_a("{}"));
  15. Equipment.appendTag(JsonToNBT.func_180713_a("{}"));
  16. Equipment.appendTag(JsonToNBT.func_180713_a("{}"));
  17. Equipment.appendTag(JsonToNBT.func_180713_a("{}"));
  18. Equipment.appendTag(JsonToNBT.func_180713_a("{id:\"skull\",Count:1b,Damage:3b,tag:{SkullOwner:{Id:\"96179689-3fb2-4143-be50-eb049a016bc8\",Properties:{textures:[{Value:\"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOWIzYjFmNzg1ZjAxNzUzYzQ1ZWY5N2ZjZmZmZmIzZjUyNjU4ZmZjZWIxN2FkM2Y3YjU5Mjk0NWM2ZGYyZmEifX19\"}]}}}}"));
  19. SpawnData.setInteger("Invisible", 1);
  20. SpawnData.setString("CustomName", "ยง3Kacke");
  21. SpawnData.setInteger("CustomNameVisible", 1);
  22. SpawnData.setTag("Equipment", Equipment);
  23. BlockEntityTag.setTag("SpawnData", SpawnData);
  24. base.setTag("BlockEntityTag", BlockEntityTag);
  25. itm.setTagCompound(base);
  26. Minecraft.getMinecraft().thePlayer.sendQueue.addToSendQueue(new C10PacketCreativeInventoryAction(36, addSpawnerToFurnance(itm)));
  27. chatmanager.sendMessage("Du hast das Item erhalten!");
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement