Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override def registerRecipe(): Unit =
- {
- val redstoneStack = new ItemStack(Items.redstone)
- val redstoneBlockStack = new ItemStack(Blocks.redstone_block)
- val woodStack = new ItemStack(Blocks.planks)
- GameRegistry.addShapedRecipe(new ItemStack(BasicPowerBank.getItem),
- "rrr",
- "RwR",
- "rrr",
- Character.valueOf('r'), redstoneStack,
- Character.valueOf('R'), redstoneBlockStack,
- Character.valueOf('w'), "plankWood") // This crashes Minecraft (NullPointerException) when I use the "plankWood" or ":plankWood" construction for an OreDict entry, but not when I use the ItemStack definition as above.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement