Hey, I just started copying the AdminEvil hack from Garkolym, now I have the problem that with
this.addItemToOfen(itm)
itm is not recognized, here once the full code:
public void commandAction(String message) {
Minecraft.getMinecraft().thePlayer.sendQueue.addTo SendQueue(new C10PacketCreativeInventoryAction(36, this.addItemToOfen(itm)));
}
public ItemStack addItemToOfen(ItemStack itm) {
ItemStack furnace = new ItemStack(Blocks.furnace);
NBTTagCompound base = new NBTTagCompound();
NBTTagCompound blockEntityTag = new NBTTagCompound();
blockEntityTag.setShort("BurnTime", (short) 0);
blockEntityTag.setShort("CookTime", (short) 0);
blockEntityTag.setShort("KochZeitGesamt", (short) 200);
blockEntityTag.setString("id", "Ofen");
blockEntityTag.setString("Lock", "");
NBTTagList items = new NBTTagList();
NBTTagCompound item = new NBTTagCompound();
item.setByte("Anzahl", (byte) 1);
item.setShort("Schaden", (short) itm.getItemDamage());
item.setString("id", "minecraft:mob_spawner");
item.setShort("Slot", (short) 0);
items.appendTag(item);
blockEntityTag.setTag("Items", items);
base.setTag("BlockEntityTag", blockEntityTag);
furnace.setTagCompound(base);
return furnace;
}
Last edited by meme; 06-27-2021 at 07:23 AM. Reason: removed video, contains outside download links