Jump to content

[1.12.2] I get an error when I write two blocks in the recipe section


The Rabbit

Recommended Posts

Block recipe contains sand and wood but when i write two blocks in recipe class i get error.

 

Code:

		GameRegistry.addSmelting(ModBlocks.BLOCK_SANDBAG, new ItemStack(Blocks.SAND, 4), new ItemStack(Blocks.PLANKS, 4), 0.2F);		

My Recipes (JSON) :

{
  "type": "crafting_shaped",
  "pattern": [
    "AAA",
    "ABA",
    "AAA"
  ],
  "key": {
    "A": {
      "item": "minecraft:sand",
      "data": 0
    },
    "B": {
      "item": "minecraft:planks",
      "data": 0
    }
  },
  "result": {
    "item": "zz:block_sandbag",
    "count": 9
  }
}

 

The error i got :

73w5Pyp.png

Edited by The Rabbit
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.