RocketEntity added. Uses RocketRenderer and RocketStructure to render blocks. RocketStructure supports volumes up to 128^3.

This commit is contained in:
XevianLight
2026-01-24 21:24:20 -07:00
parent 5500b78e53
commit 59062724ff
29 changed files with 769 additions and 52 deletions

View File

@@ -68,7 +68,8 @@ public class VacuumArcFurnaceController extends BaseEntityBlock {
.sound(SoundType.NETHERITE_BLOCK)
.destroyTime(2f)
.explosionResistance(10f)
.requiresCorrectToolForDrops();
.requiresCorrectToolForDrops()
.lightLevel(state -> state.getValue(BlockStateProperties.LIT) ? 15 : 0);
}
public static Item.Properties getItemProperties() {

View File

@@ -24,7 +24,7 @@ import org.jetbrains.annotations.Nullable;
public class BaseMultiblockDummyBlockEntity extends BlockEntity implements IMultiblockPart {
@Nullable private BlockPos controllerPos;
private BlockState mimicing = Blocks.AIR.defaultBlockState();
private BlockState mimicking = Blocks.AIR.defaultBlockState();
@Nullable
private ItemStackHandler getControllerInventory() {
@@ -116,7 +116,7 @@ public class BaseMultiblockDummyBlockEntity extends BlockEntity implements IMult
protected void saveAdditional(CompoundTag tag, HolderLookup.Provider registries) {
super.saveAdditional(tag, registries);
if (controllerPos != null) tag.putLong("controller", controllerPos.asLong());
tag.put("mimic", NbtUtils.writeBlockState(mimicing));
tag.put("mimic", NbtUtils.writeBlockState(mimicking));
}
@Override
@@ -170,12 +170,12 @@ public class BaseMultiblockDummyBlockEntity extends BlockEntity implements IMult
@Override
public BlockState getMimicing() {
return mimicing;
return mimicking;
}
@Override
public void setMimicing(BlockState newState) {
mimicing = newState;
mimicking = newState;
setChanged();
if (level != null) {
level.sendBlockUpdated(worldPosition, getBlockState(), getBlockState(), 3);