Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static ItemStack itm = new ItemStack(Blocks.mob_spawner, 1, 0);
- public static void execute(Integer Count, Integer Delay, Integer Range)
- throws NBTException
- {
- NBTTagCompound base = new NBTTagCompound();
- NBTTagCompound BlockEntityTag = new NBTTagCompound();
- NBTTagCompound SpawnData = new NBTTagCompound();
- NBTTagList Equipment = new NBTTagList();
- BlockEntityTag.setInteger("SpawnCount", Count.intValue());
- BlockEntityTag.setInteger("SpawnRange", Range.intValue());
- BlockEntityTag.setInteger("Delay", Delay.intValue());
- BlockEntityTag.setString("EntityId", "ArmorStand");
- Equipment.appendTag(JsonToNBT.func_180713_a("{}"));
- Equipment.appendTag(JsonToNBT.func_180713_a("{}"));
- Equipment.appendTag(JsonToNBT.func_180713_a("{}"));
- Equipment.appendTag(JsonToNBT.func_180713_a("{}"));
- Equipment.appendTag(JsonToNBT.func_180713_a("{id:\"skull\",Count:1b,Damage:3b,tag:{SkullOwner:{Id:\"96179689-3fb2-4143-be50-eb049a016bc8\",Properties:{textures:[{Value:\"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOWIzYjFmNzg1ZjAxNzUzYzQ1ZWY5N2ZjZmZmZmIzZjUyNjU4ZmZjZWIxN2FkM2Y3YjU5Mjk0NWM2ZGYyZmEifX19\"}]}}}}"));
- SpawnData.setInteger("Invisible", 1);
- SpawnData.setString("CustomName", "ยง3Kacke");
- SpawnData.setInteger("CustomNameVisible", 1);
- SpawnData.setTag("Equipment", Equipment);
- BlockEntityTag.setTag("SpawnData", SpawnData);
- base.setTag("BlockEntityTag", BlockEntityTag);
- itm.setTagCompound(base);
- Minecraft.getMinecraft().thePlayer.sendQueue.addToSendQueue(new C10PacketCreativeInventoryAction(36, addSpawnerToFurnance(itm)));
- chatmanager.sendMessage("Du hast das Item erhalten!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement