Skip to content

Instantly share code, notes, and snippets.

@Kaupenjoe
Last active July 1, 2021 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kaupenjoe/ee660c471c8aac5b0fa594146e1dc082 to your computer and use it in GitHub Desktop.
Save Kaupenjoe/ee660c471c8aac5b0fa594146e1dc082 to your computer and use it in GitHub Desktop.
The "Solution" files for the Challenge in the Custom Recipes video
public static final RegistryObject<Block> AMETHYST_BLOCK = registerBlock("amethyst_block",
() -> new Block(AbstractBlock.Properties.create(Material.ROCK)
.harvestLevel(2).setRequiresTool().harvestTool(ToolType.PICKAXE).hardnessAndResistance(8f)));
{
"variants": {
"": { "model": "tutorialmod:block/amethyst_block" }
}
}
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "tutorialmod:amethyst_block"
}
]
}
]
}
{
"parent": "block/cube_all",
"textures": {
"all": "tutorialmod:block/amethyst_block"
}
}
{
"parent": "tutorialmod:block/amethyst_block"
}
{
"type": "minecraft:crafting_shaped",
"pattern": [
"###",
"###",
"###"
],
"key": {
"#": {
"item": "tutorialmod:amethyst"
}
},
"result": {
"item": "tutorialmod:amethyst_block"
}
}
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "tutorialmod:amethyst_block"
}
],
"result": {
"item": "tutorialmod:amethyst",
"count": 9
}
}
{
"type": "minecraft:blasting",
"ingredient": {
"item": "tutorialmod:amethyst_ore"
},
"result": "tutorialmod:amethyst",
"experience": 0.1,
"cookingtime": 100
}
{
"type": "minecraft:smelting",
"ingredient": {
"item": "tutorialmod:amethyst_ore"
},
"result": "tutorialmod:amethyst",
"experience": 0.1,
"cookingtime": 200
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment