Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Somthing like this in your mod_mod.onTickInGame method
- if (mc.currentScreen instanceof GuiContainerCreative && !hasAddedCreativeItems) {
- ((ContainerCreative) ((GuiContainer) mc.currentScreen).inventorySlots).itemList.add(new ItemStack(mod_mod.yourBlock));
- hasAddedCreativeItems = true;
- } else if (mc.currentScreen == null)
- hasAddedCreativeItems = false;
Advertisement