Skip to content

Commit 5f4f653

Browse files
Update MDK with new output from mod generator
1 parent 17dbeee commit 5f4f653

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/example/examplemod/ExampleMod.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ public class ExampleMod {
4646
public static final DeferredRegister<CreativeModeTab> CREATIVE_MODE_TABS = DeferredRegister.create(Registries.CREATIVE_MODE_TAB, MODID);
4747

4848
// Creates a new Block with the id "examplemod:example_block", combining the namespace and path
49-
public static final DeferredBlock<Block> EXAMPLE_BLOCK = BLOCKS.registerSimpleBlock("example_block", BlockBehaviour.Properties.of().mapColor(MapColor.STONE));
49+
public static final DeferredBlock<Block> EXAMPLE_BLOCK = BLOCKS.registerSimpleBlock("example_block", p -> p.mapColor(MapColor.STONE));
5050
// Creates a new BlockItem with the id "examplemod:example_block", combining the namespace and path
5151
public static final DeferredItem<BlockItem> EXAMPLE_BLOCK_ITEM = ITEMS.registerSimpleBlockItem("example_block", EXAMPLE_BLOCK);
5252

5353
// Creates a new food item with the id "examplemod:example_id", nutrition 1 and saturation 2
54-
public static final DeferredItem<Item> EXAMPLE_ITEM = ITEMS.registerSimpleItem("example_item", new Item.Properties().food(new FoodProperties.Builder()
54+
public static final DeferredItem<Item> EXAMPLE_ITEM = ITEMS.registerSimpleItem("example_item", p -> p.food(new FoodProperties.Builder()
5555
.alwaysEdible().nutrition(1).saturationModifier(2f).build()));
5656

5757
// Creates a creative tab with the id "examplemod:example_tab" for the example item, that is placed after the combat tab

0 commit comments

Comments
 (0)