diff --git a/gradle.properties b/gradle.properties index 0e69752..e9990e3 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ yarn_mappings=1.20.6+build.3 loader_version=0.15.11 # Mod Properties -mod_version = 1.1.1+1.20.6 +mod_version = 1.1.2+1.20.6 maven_group = systems.brn.televator archives_base_name = televator diff --git a/src/main/java/systems/brn/televator/blocks/TelevatorBlock.java b/src/main/java/systems/brn/televator/blocks/TelevatorBlock.java index e040f74..594849a 100644 --- a/src/main/java/systems/brn/televator/blocks/TelevatorBlock.java +++ b/src/main/java/systems/brn/televator/blocks/TelevatorBlock.java @@ -1,6 +1,8 @@ package systems.brn.televator.blocks; +import net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents; import net.minecraft.block.AbstractBlock; +import net.minecraft.item.ItemGroups; import systems.brn.televator.Televator; import systems.brn.televator.TelevatorConfig; import systems.brn.televator.items.TelevatorBlockItem; @@ -41,7 +43,8 @@ public class TelevatorBlock extends Block implements PolymerTexturedBlock { var block = Registry.register(Registries.BLOCK, modId, new TelevatorBlock(AbstractBlock.Settings.copy(Blocks.WHITE_WOOL), BlockModelType.FULL_BLOCK, Televator.MODELID)); - Registry.register(Registries.ITEM, modId, new TelevatorBlockItem(new Item.Settings(), block, Televator.MODELID)); + Item item = Registry.register(Registries.ITEM, modId, new TelevatorBlockItem(new Item.Settings(), block, Televator.MODELID)); + ItemGroupEvents.modifyEntriesEvent(ItemGroups.FUNCTIONAL).register(content -> content.add(item)); } public void handleMovement(BlockPos pos, ServerPlayerEntity player, boolean isJumping) { diff --git a/src/main/resources/assets/televator/models/televator.json b/src/main/resources/assets/televator/models/televator.json index b6d0bfc..7c2e8f4 100644 --- a/src/main/resources/assets/televator/models/televator.json +++ b/src/main/resources/assets/televator/models/televator.json @@ -1,5 +1,5 @@ { - "parent": "block/cube_all", + "parent": "block/cube_column", "textures": { "end": "televator:block/televator_top", "side": "televator:block/televator_side" diff --git a/src/main/resources/assets/televator/textures/block/televator_top_bottom.png b/src/main/resources/assets/televator/textures/block/televator_top.png similarity index 100% rename from src/main/resources/assets/televator/textures/block/televator_top_bottom.png rename to src/main/resources/assets/televator/textures/block/televator_top.png