GenuineSounds

Adding items and blocks to the creative menu.

Jul 15th, 2012
192
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. // Somthing like this in your mod_mod.onTickInGame method
  2.  
  3. if (mc.currentScreen instanceof GuiContainerCreative && !hasAddedCreativeItems) {
  4.         ((ContainerCreative) ((GuiContainer) mc.currentScreen).inventorySlots).itemList.add(new ItemStack(mod_mod.yourBlock));
  5.     hasAddedCreativeItems = true;
  6. } else if (mc.currentScreen == null)
  7.     hasAddedCreativeItems = false;
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment