From 4bc0dcc469089daf168ac8d2573a7f429b1c6ee7 Mon Sep 17 00:00:00 2001 From: 17146 <1714673995@qq.com> Date: Sun, 13 Jul 2025 21:35:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B9=B8=E8=BF=90=E8=A1=A5?= =?UTF-8?q?=E7=BB=99=E7=AE=B1=E7=9A=84=E5=BC=95=E7=94=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../block/entity/LuckyContainerBlockEntity.java | 10 +++++----- .../assets/superbwarfare/geo/container.geo.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/atsuishio/superbwarfare/block/entity/LuckyContainerBlockEntity.java b/src/main/java/com/atsuishio/superbwarfare/block/entity/LuckyContainerBlockEntity.java index 2e2948146..60c533aa9 100644 --- a/src/main/java/com/atsuishio/superbwarfare/block/entity/LuckyContainerBlockEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/block/entity/LuckyContainerBlockEntity.java @@ -1,6 +1,6 @@ package com.atsuishio.superbwarfare.block.entity; -import com.atsuishio.superbwarfare.block.ContainerBlock; +import com.atsuishio.superbwarfare.block.LuckyContainerBlock; import com.atsuishio.superbwarfare.init.ModBlockEntities; import com.atsuishio.superbwarfare.tools.ParticleTool; import net.minecraft.core.BlockPos; @@ -32,11 +32,11 @@ public class LuckyContainerBlockEntity extends BlockEntity implements GeoBlockEn private final AnimatableInstanceCache cache = GeckoLibUtil.createInstanceCache(this); public LuckyContainerBlockEntity(BlockPos pos, BlockState state) { - super(ModBlockEntities.CONTAINER.get(), pos, state); + super(ModBlockEntities.LUCKY_CONTAINER.get(), pos, state); } public static void serverTick(Level pLevel, BlockPos pPos, BlockState pState, LuckyContainerBlockEntity blockEntity) { - if (!pState.getValue(ContainerBlock.OPENED)) { + if (!pState.getValue(LuckyContainerBlock.OPENED)) { return; } @@ -49,14 +49,14 @@ public class LuckyContainerBlockEntity extends BlockEntity implements GeoBlockEn pLevel.playSound(null, pPos, SoundEvents.GENERIC_EXPLODE.value(), SoundSource.BLOCKS, 4.0F, (1.0F + (pLevel.random.nextFloat() - pLevel.random.nextFloat()) * 0.2F) * 0.7F); } } else { - var direction = pState.getValue(ContainerBlock.FACING); + var direction = pState.getValue(LuckyContainerBlock.FACING); pLevel.setBlockAndUpdate(pPos, Blocks.AIR.defaultBlockState()); } } private PlayState predicate(AnimationState event) { - if (this.getBlockState().getValue(ContainerBlock.OPENED)) { + if (this.getBlockState().getValue(LuckyContainerBlock.OPENED)) { return event.setAndContinue(RawAnimation.begin().thenPlay("animation.container.open")); } return PlayState.STOP; diff --git a/src/main/resources/assets/superbwarfare/geo/container.geo.json b/src/main/resources/assets/superbwarfare/geo/container.geo.json index b853db314..055d3b257 100644 --- a/src/main/resources/assets/superbwarfare/geo/container.geo.json +++ b/src/main/resources/assets/superbwarfare/geo/container.geo.json @@ -3,7 +3,7 @@ "minecraft:geometry": [ { "description": { - "identifier": "geometry.unknown", + "identifier": "geometry.container", "texture_width": 128, "texture_height": 128, "visible_bounds_width": 5,