Fix texture
Some checks are pending
build / build (17, ubuntu-22.04) (push) Waiting to run
build / build (17, windows-2022) (push) Waiting to run

This commit is contained in:
Bruno Rybársky 2024-05-25 14:14:50 +02:00
parent 0c372eaa8c
commit 23bb09f795
4 changed files with 6 additions and 3 deletions

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

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

@ -1,5 +1,5 @@
{
"parent": "block/cube_all",
"parent": "block/cube_column",
"textures": {
"end": "televator:block/televator_top",
"side": "televator:block/televator_side"