Added a recipe. just need to get it to work.

This commit is contained in:
dragonruler1000 2025-05-09 09:32:54 -05:00
parent 15d8ab29b9
commit c12f41f1a4
3 changed files with 18 additions and 3 deletions

View file

@ -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) {

View file

@ -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()))

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"###",
"###",
"###"
],
"key": {
"#": {
"item": "hdm_mod:dust"
}
},
"result": {
"item": "hdm_mod:block_of_dust"
}
}