mirror of
https://github.com/dragonruler1000/hdm-mod.git
synced 2025-06-29 08:29:33 -05:00
Added a recipe. just need to get it to work.
This commit is contained in:
parent
15d8ab29b9
commit
c12f41f1a4
3 changed files with 18 additions and 3 deletions
|
@ -5,7 +5,6 @@ import net.minecraft.block.Block;
|
|||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.item.BlockItem;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraftforge.common.ToolType;
|
||||
import net.minecraftforge.eventbus.api.IEventBus;
|
||||
import net.minecraftforge.fml.RegistryObject;
|
||||
import net.minecraftforge.registries.DeferredRegister;
|
||||
|
@ -22,7 +21,7 @@ public class ModBlocks {
|
|||
|
||||
public static final RegistryObject<Block> DUST_BLOCK = registerBlock("block_of_dust",
|
||||
() -> new Block(AbstractBlock.Properties.create(Material.ROCK).doesNotBlockMovement().harvestLevel(0)
|
||||
.harvestTool(ToolType.PICKAXE).setRequiresTool().hardnessAndResistance(5f)));
|
||||
.hardnessAndResistance(5f)));
|
||||
|
||||
|
||||
private static <T extends Block>RegistryObject<T> registerBlock(String name, Supplier<T> block) {
|
||||
|
|
|
@ -13,7 +13,7 @@ public class ModItems {
|
|||
DeferredRegister.create(ForgeRegistries.ITEMS, Hdm_mod.MOD_ID);
|
||||
|
||||
public static final RegistryObject<Item> DUST = ITEMS.register("dust",
|
||||
() -> new Item(new Item.Properties().isImmuneToFire().maxStackSize(63).group(ModItemGroup.HDM_ITEM_GROUP)));
|
||||
() -> new Item(new Item.Properties().isImmuneToFire().maxStackSize(42).group(ModItemGroup.HDM_ITEM_GROUP)));
|
||||
|
||||
// public static final RegistryObject<Item> OMELET = ITEMS.register("omelet",
|
||||
// () -> new Item(new Item.Properties().food()))
|
||||
|
|
16
src/main/resources/data/hdm_mod/recipies/block_of_dust.json
Normal file
16
src/main/resources/data/hdm_mod/recipies/block_of_dust.json
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern": [
|
||||
"###",
|
||||
"###",
|
||||
"###"
|
||||
],
|
||||
"key": {
|
||||
"#": {
|
||||
"item": "hdm_mod:dust"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"item": "hdm_mod:block_of_dust"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue