Skip to content

Commit

Permalink
Ensure that models are enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
QPCrummer committed Jan 4, 2025
1 parent 3a63312 commit b10deb6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static void registerBlocksAndItems(String id, AbstractBlock.Settings sett

settings.registryKey(blockKey);
Block block = new SimplePolymerTexturedBlock(settings, visibleBlock, identifier);
BlockItem item = new PolymerBlockItem(block, new Item.Settings().useBlockPrefixedTranslationKey().registryKey(itemKey), visibleBlock.asItem());
BlockItem item = new PolymerBlockItem(block, new Item.Settings().useBlockPrefixedTranslationKey().registryKey(itemKey), visibleBlock.asItem(), true);

Registry.register(Registries.BLOCK, blockKey, block);
Registry.register(Registries.ITEM, itemKey, item);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ public class ModItems {

private static final RegistryKey<Item> key_heart_crystal = RegistryKey.of(RegistryKeys.ITEM, Identifier.of(Lifesteal.MOD_ID, "heart_crystal"));
public static final Item HEART_CRYSTAL = register(
new SimplePolymerItem(new Item.Settings().registryKey(key_heart_crystal), Items.ECHO_SHARD),
new SimplePolymerItem(new Item.Settings().registryKey(key_heart_crystal), Items.ECHO_SHARD, true),
key_heart_crystal
);

private static final RegistryKey<Item> key_heart_dust = RegistryKey.of(RegistryKeys.ITEM, Identifier.of(Lifesteal.MOD_ID, "heart_dust"));
public static final Item HEART_DUST = register(
new SimplePolymerItem(new Item.Settings().registryKey(key_heart_dust), Items.REDSTONE),
new SimplePolymerItem(new Item.Settings().registryKey(key_heart_dust), Items.REDSTONE, true),
key_heart_dust
);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"variants": {
"": { "model": "lifesteal:block/deepslate_heart_ore" }
"": {
"model": "lifesteal:block/deepslate_heart_ore"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"variants": {
"": { "model": "lifesteal:block/heart_ore" }
"": {
"model": "lifesteal:block/heart_ore"
}
}
}

0 comments on commit b10deb6

Please sign in to comment.