Tag data-gen
This commit is contained in:
parent
517a4f0824
commit
1a052d1ec1
4 changed files with 46 additions and 20 deletions
|
@ -1,30 +1,31 @@
|
||||||
{
|
{
|
||||||
"replace": false,
|
"replace": false,
|
||||||
"values": [
|
"values": [
|
||||||
"#signs",
|
"create:creative_motor",
|
||||||
"create:linear_chassis",
|
"create:fluid_tank",
|
||||||
"create:secondary_linear_chassis",
|
"create:creative_fluid_tank",
|
||||||
"create:radial_chassis",
|
"create:mechanical_piston",
|
||||||
"create:redstone_link",
|
"create:sticky_mechanical_piston",
|
||||||
|
"create:mechanical_piston_head",
|
||||||
"create:windmill_bearing",
|
"create:windmill_bearing",
|
||||||
"create:mechanical_bearing",
|
"create:mechanical_bearing",
|
||||||
"create:clockwork_bearing",
|
"create:clockwork_bearing",
|
||||||
"create:mechanical_piston",
|
|
||||||
"create:sticky_mechanical_piston",
|
|
||||||
"create:rope_pulley",
|
"create:rope_pulley",
|
||||||
"create:cart_assembler",
|
"create:cart_assembler",
|
||||||
|
"create:linear_chassis",
|
||||||
|
"create:secondary_linear_chassis",
|
||||||
|
"create:radial_chassis",
|
||||||
"create:sequenced_gearshift",
|
"create:sequenced_gearshift",
|
||||||
"create:creative_motor",
|
"create:rotation_speed_controller",
|
||||||
"create:creative_fluid_tank",
|
"create:andesite_funnel",
|
||||||
"create:creative_crate",
|
"create:andesite_belt_funnel",
|
||||||
"create:adjustable_repeater",
|
|
||||||
"create:adjustable_pulse_repeater",
|
|
||||||
"create:analog_lever",
|
|
||||||
"create:brass_funnel",
|
"create:brass_funnel",
|
||||||
"create:brass_belt_funnel",
|
"create:brass_belt_funnel",
|
||||||
"create:andesite_funnel",
|
"create:creative_crate",
|
||||||
"create:andesite_belt_funnel"
|
"create:redstone_link",
|
||||||
],
|
"create:analog_lever",
|
||||||
"optional": [
|
"create:adjustable_repeater",
|
||||||
|
"create:adjustable_pulse_repeater",
|
||||||
|
"#minecraft:signs"
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -320,6 +320,7 @@ public class AllBlocks {
|
||||||
public static final BlockEntry<CreativeMotorBlock> CREATIVE_MOTOR =
|
public static final BlockEntry<CreativeMotorBlock> CREATIVE_MOTOR =
|
||||||
REGISTRATE.block("creative_motor", CreativeMotorBlock::new)
|
REGISTRATE.block("creative_motor", CreativeMotorBlock::new)
|
||||||
.initialProperties(SharedProperties::stone)
|
.initialProperties(SharedProperties::stone)
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.blockstate(new CreativeMotorGenerator()::generate)
|
.blockstate(new CreativeMotorGenerator()::generate)
|
||||||
.transform(StressConfigDefaults.setCapacity(16384.0))
|
.transform(StressConfigDefaults.setCapacity(16384.0))
|
||||||
.item()
|
.item()
|
||||||
|
@ -592,6 +593,7 @@ public class AllBlocks {
|
||||||
|
|
||||||
public static final BlockEntry<FluidTankBlock> FLUID_TANK = REGISTRATE.block("fluid_tank", FluidTankBlock::regular)
|
public static final BlockEntry<FluidTankBlock> FLUID_TANK = REGISTRATE.block("fluid_tank", FluidTankBlock::regular)
|
||||||
.initialProperties(SharedProperties::softMetal)
|
.initialProperties(SharedProperties::softMetal)
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.properties(Block.Properties::nonOpaque)
|
.properties(Block.Properties::nonOpaque)
|
||||||
.blockstate(new FluidTankGenerator()::generate)
|
.blockstate(new FluidTankGenerator()::generate)
|
||||||
.onRegister(CreateRegistrate.blockModel(() -> FluidTankModel::standard))
|
.onRegister(CreateRegistrate.blockModel(() -> FluidTankModel::standard))
|
||||||
|
@ -604,6 +606,7 @@ public class AllBlocks {
|
||||||
public static final BlockEntry<FluidTankBlock> CREATIVE_FLUID_TANK =
|
public static final BlockEntry<FluidTankBlock> CREATIVE_FLUID_TANK =
|
||||||
REGISTRATE.block("creative_fluid_tank", FluidTankBlock::creative)
|
REGISTRATE.block("creative_fluid_tank", FluidTankBlock::creative)
|
||||||
.initialProperties(SharedProperties::softMetal)
|
.initialProperties(SharedProperties::softMetal)
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.properties(Block.Properties::nonOpaque)
|
.properties(Block.Properties::nonOpaque)
|
||||||
.blockstate(new FluidTankGenerator("creative_")::generate)
|
.blockstate(new FluidTankGenerator("creative_")::generate)
|
||||||
.onRegister(CreateRegistrate.blockModel(() -> FluidTankModel::creative))
|
.onRegister(CreateRegistrate.blockModel(() -> FluidTankModel::creative))
|
||||||
|
@ -653,11 +656,13 @@ public class AllBlocks {
|
||||||
public static final BlockEntry<MechanicalPistonBlock> MECHANICAL_PISTON =
|
public static final BlockEntry<MechanicalPistonBlock> MECHANICAL_PISTON =
|
||||||
REGISTRATE.block("mechanical_piston", MechanicalPistonBlock::normal)
|
REGISTRATE.block("mechanical_piston", MechanicalPistonBlock::normal)
|
||||||
.transform(BuilderTransformers.mechanicalPiston(PistonType.DEFAULT))
|
.transform(BuilderTransformers.mechanicalPiston(PistonType.DEFAULT))
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.register();
|
.register();
|
||||||
|
|
||||||
public static final BlockEntry<MechanicalPistonBlock> STICKY_MECHANICAL_PISTON =
|
public static final BlockEntry<MechanicalPistonBlock> STICKY_MECHANICAL_PISTON =
|
||||||
REGISTRATE.block("sticky_mechanical_piston", MechanicalPistonBlock::sticky)
|
REGISTRATE.block("sticky_mechanical_piston", MechanicalPistonBlock::sticky)
|
||||||
.transform(BuilderTransformers.mechanicalPiston(PistonType.STICKY))
|
.transform(BuilderTransformers.mechanicalPiston(PistonType.STICKY))
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.register();
|
.register();
|
||||||
|
|
||||||
public static final BlockEntry<PistonExtensionPoleBlock> PISTON_EXTENSION_POLE =
|
public static final BlockEntry<PistonExtensionPoleBlock> PISTON_EXTENSION_POLE =
|
||||||
|
@ -670,6 +675,7 @@ public class AllBlocks {
|
||||||
public static final BlockEntry<MechanicalPistonHeadBlock> MECHANICAL_PISTON_HEAD =
|
public static final BlockEntry<MechanicalPistonHeadBlock> MECHANICAL_PISTON_HEAD =
|
||||||
REGISTRATE.block("mechanical_piston_head", MechanicalPistonHeadBlock::new)
|
REGISTRATE.block("mechanical_piston_head", MechanicalPistonHeadBlock::new)
|
||||||
.initialProperties(() -> Blocks.PISTON_HEAD)
|
.initialProperties(() -> Blocks.PISTON_HEAD)
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.loot((p, b) -> p.registerDropping(b, PISTON_EXTENSION_POLE.get()))
|
.loot((p, b) -> p.registerDropping(b, PISTON_EXTENSION_POLE.get()))
|
||||||
.blockstate((c, p) -> BlockStateGen.directionalBlockIgnoresWaterlogged(c, p, state -> p.models()
|
.blockstate((c, p) -> BlockStateGen.directionalBlockIgnoresWaterlogged(c, p, state -> p.models()
|
||||||
.getExistingFile(p.modLoc("block/mechanical_piston/" + state.get(MechanicalPistonHeadBlock.TYPE)
|
.getExistingFile(p.modLoc("block/mechanical_piston/" + state.get(MechanicalPistonHeadBlock.TYPE)
|
||||||
|
@ -680,12 +686,14 @@ public class AllBlocks {
|
||||||
REGISTRATE.block("windmill_bearing", WindmillBearingBlock::new)
|
REGISTRATE.block("windmill_bearing", WindmillBearingBlock::new)
|
||||||
.transform(BuilderTransformers.bearing("windmill", "gearbox", true))
|
.transform(BuilderTransformers.bearing("windmill", "gearbox", true))
|
||||||
.transform(StressConfigDefaults.setCapacity(512.0))
|
.transform(StressConfigDefaults.setCapacity(512.0))
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.register();
|
.register();
|
||||||
|
|
||||||
public static final BlockEntry<MechanicalBearingBlock> MECHANICAL_BEARING =
|
public static final BlockEntry<MechanicalBearingBlock> MECHANICAL_BEARING =
|
||||||
REGISTRATE.block("mechanical_bearing", MechanicalBearingBlock::new)
|
REGISTRATE.block("mechanical_bearing", MechanicalBearingBlock::new)
|
||||||
.transform(BuilderTransformers.bearing("mechanical", "gearbox", false))
|
.transform(BuilderTransformers.bearing("mechanical", "gearbox", false))
|
||||||
.transform(StressConfigDefaults.setImpact(4.0))
|
.transform(StressConfigDefaults.setImpact(4.0))
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.onRegister(addMovementBehaviour(new StabilizedBearingMovementBehaviour()))
|
.onRegister(addMovementBehaviour(new StabilizedBearingMovementBehaviour()))
|
||||||
.register();
|
.register();
|
||||||
|
|
||||||
|
@ -693,10 +701,12 @@ public class AllBlocks {
|
||||||
REGISTRATE.block("clockwork_bearing", ClockworkBearingBlock::new)
|
REGISTRATE.block("clockwork_bearing", ClockworkBearingBlock::new)
|
||||||
.transform(BuilderTransformers.bearing("clockwork", "brass_gearbox", false))
|
.transform(BuilderTransformers.bearing("clockwork", "brass_gearbox", false))
|
||||||
.transform(StressConfigDefaults.setImpact(4.0))
|
.transform(StressConfigDefaults.setImpact(4.0))
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.register();
|
.register();
|
||||||
|
|
||||||
public static final BlockEntry<PulleyBlock> ROPE_PULLEY = REGISTRATE.block("rope_pulley", PulleyBlock::new)
|
public static final BlockEntry<PulleyBlock> ROPE_PULLEY = REGISTRATE.block("rope_pulley", PulleyBlock::new)
|
||||||
.initialProperties(SharedProperties::stone)
|
.initialProperties(SharedProperties::stone)
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.blockstate(BlockStateGen.horizontalAxisBlockProvider(true))
|
.blockstate(BlockStateGen.horizontalAxisBlockProvider(true))
|
||||||
.transform(StressConfigDefaults.setImpact(4.0))
|
.transform(StressConfigDefaults.setImpact(4.0))
|
||||||
.item()
|
.item()
|
||||||
|
@ -725,7 +735,7 @@ public class AllBlocks {
|
||||||
.properties(Block.Properties::nonOpaque)
|
.properties(Block.Properties::nonOpaque)
|
||||||
.blockstate(BlockStateGen.cartAssembler())
|
.blockstate(BlockStateGen.cartAssembler())
|
||||||
.addLayer(() -> RenderType::getCutoutMipped)
|
.addLayer(() -> RenderType::getCutoutMipped)
|
||||||
.tag(BlockTags.RAILS)
|
.tag(BlockTags.RAILS, AllBlockTags.SAFE_NBT.tag)
|
||||||
.item(CartAssemblerBlockItem::new)
|
.item(CartAssemblerBlockItem::new)
|
||||||
.transform(customItemModel())
|
.transform(customItemModel())
|
||||||
.register();
|
.register();
|
||||||
|
@ -765,6 +775,7 @@ public class AllBlocks {
|
||||||
public static final BlockEntry<LinearChassisBlock> LINEAR_CHASSIS =
|
public static final BlockEntry<LinearChassisBlock> LINEAR_CHASSIS =
|
||||||
REGISTRATE.block("linear_chassis", LinearChassisBlock::new)
|
REGISTRATE.block("linear_chassis", LinearChassisBlock::new)
|
||||||
.initialProperties(SharedProperties::wooden)
|
.initialProperties(SharedProperties::wooden)
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.blockstate(BlockStateGen.linearChassis())
|
.blockstate(BlockStateGen.linearChassis())
|
||||||
.onRegister(connectedTextures(new ChassisCTBehaviour()))
|
.onRegister(connectedTextures(new ChassisCTBehaviour()))
|
||||||
.lang("Linear Chassis")
|
.lang("Linear Chassis")
|
||||||
|
@ -774,6 +785,7 @@ public class AllBlocks {
|
||||||
public static final BlockEntry<LinearChassisBlock> SECONDARY_LINEAR_CHASSIS =
|
public static final BlockEntry<LinearChassisBlock> SECONDARY_LINEAR_CHASSIS =
|
||||||
REGISTRATE.block("secondary_linear_chassis", LinearChassisBlock::new)
|
REGISTRATE.block("secondary_linear_chassis", LinearChassisBlock::new)
|
||||||
.initialProperties(SharedProperties::wooden)
|
.initialProperties(SharedProperties::wooden)
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.blockstate(BlockStateGen.linearChassis())
|
.blockstate(BlockStateGen.linearChassis())
|
||||||
.onRegister(connectedTextures(new ChassisCTBehaviour()))
|
.onRegister(connectedTextures(new ChassisCTBehaviour()))
|
||||||
.simpleItem()
|
.simpleItem()
|
||||||
|
@ -782,6 +794,7 @@ public class AllBlocks {
|
||||||
public static final BlockEntry<RadialChassisBlock> RADIAL_CHASSIS =
|
public static final BlockEntry<RadialChassisBlock> RADIAL_CHASSIS =
|
||||||
REGISTRATE.block("radial_chassis", RadialChassisBlock::new)
|
REGISTRATE.block("radial_chassis", RadialChassisBlock::new)
|
||||||
.initialProperties(SharedProperties::wooden)
|
.initialProperties(SharedProperties::wooden)
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.blockstate(BlockStateGen.radialChassis())
|
.blockstate(BlockStateGen.radialChassis())
|
||||||
.item()
|
.item()
|
||||||
.model((c, p) -> {
|
.model((c, p) -> {
|
||||||
|
@ -968,6 +981,7 @@ public class AllBlocks {
|
||||||
public static final BlockEntry<SequencedGearshiftBlock> SEQUENCED_GEARSHIFT =
|
public static final BlockEntry<SequencedGearshiftBlock> SEQUENCED_GEARSHIFT =
|
||||||
REGISTRATE.block("sequenced_gearshift", SequencedGearshiftBlock::new)
|
REGISTRATE.block("sequenced_gearshift", SequencedGearshiftBlock::new)
|
||||||
.initialProperties(SharedProperties::stone)
|
.initialProperties(SharedProperties::stone)
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.properties(Block.Properties::nonOpaque)
|
.properties(Block.Properties::nonOpaque)
|
||||||
.transform(StressConfigDefaults.setNoImpact())
|
.transform(StressConfigDefaults.setNoImpact())
|
||||||
.blockstate(new SequencedGearshiftGenerator()::generate)
|
.blockstate(new SequencedGearshiftGenerator()::generate)
|
||||||
|
@ -997,6 +1011,7 @@ public class AllBlocks {
|
||||||
public static final BlockEntry<SpeedControllerBlock> ROTATION_SPEED_CONTROLLER =
|
public static final BlockEntry<SpeedControllerBlock> ROTATION_SPEED_CONTROLLER =
|
||||||
REGISTRATE.block("rotation_speed_controller", SpeedControllerBlock::new)
|
REGISTRATE.block("rotation_speed_controller", SpeedControllerBlock::new)
|
||||||
.initialProperties(SharedProperties::softMetal)
|
.initialProperties(SharedProperties::softMetal)
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.transform(StressConfigDefaults.setNoImpact())
|
.transform(StressConfigDefaults.setNoImpact())
|
||||||
.blockstate(BlockStateGen.horizontalAxisBlockProvider(true))
|
.blockstate(BlockStateGen.horizontalAxisBlockProvider(true))
|
||||||
.item()
|
.item()
|
||||||
|
@ -1024,6 +1039,7 @@ public class AllBlocks {
|
||||||
public static final BlockEntry<AndesiteFunnelBlock> ANDESITE_FUNNEL =
|
public static final BlockEntry<AndesiteFunnelBlock> ANDESITE_FUNNEL =
|
||||||
REGISTRATE.block("andesite_funnel", AndesiteFunnelBlock::new)
|
REGISTRATE.block("andesite_funnel", AndesiteFunnelBlock::new)
|
||||||
.initialProperties(SharedProperties::stone)
|
.initialProperties(SharedProperties::stone)
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.onRegister(addMovementBehaviour(FunnelMovementBehaviour.andesite()))
|
.onRegister(addMovementBehaviour(FunnelMovementBehaviour.andesite()))
|
||||||
.transform(BuilderTransformers.funnel("andesite", Create.asResource("block/andesite_casing")))
|
.transform(BuilderTransformers.funnel("andesite", Create.asResource("block/andesite_casing")))
|
||||||
.register();
|
.register();
|
||||||
|
@ -1031,6 +1047,7 @@ public class AllBlocks {
|
||||||
public static final BlockEntry<AndesiteBeltFunnelBlock> ANDESITE_BELT_FUNNEL =
|
public static final BlockEntry<AndesiteBeltFunnelBlock> ANDESITE_BELT_FUNNEL =
|
||||||
REGISTRATE.block("andesite_belt_funnel", AndesiteBeltFunnelBlock::new)
|
REGISTRATE.block("andesite_belt_funnel", AndesiteBeltFunnelBlock::new)
|
||||||
.initialProperties(SharedProperties::stone)
|
.initialProperties(SharedProperties::stone)
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.blockstate(new BeltFunnelGenerator("andesite", new ResourceLocation("block/polished_andesite"))::generate)
|
.blockstate(new BeltFunnelGenerator("andesite", new ResourceLocation("block/polished_andesite"))::generate)
|
||||||
.loot((p, b) -> p.registerDropping(b, ANDESITE_FUNNEL.get()))
|
.loot((p, b) -> p.registerDropping(b, ANDESITE_FUNNEL.get()))
|
||||||
.register();
|
.register();
|
||||||
|
@ -1038,6 +1055,7 @@ public class AllBlocks {
|
||||||
public static final BlockEntry<BrassFunnelBlock> BRASS_FUNNEL =
|
public static final BlockEntry<BrassFunnelBlock> BRASS_FUNNEL =
|
||||||
REGISTRATE.block("brass_funnel", BrassFunnelBlock::new)
|
REGISTRATE.block("brass_funnel", BrassFunnelBlock::new)
|
||||||
.initialProperties(SharedProperties::softMetal)
|
.initialProperties(SharedProperties::softMetal)
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.onRegister(addMovementBehaviour(FunnelMovementBehaviour.brass()))
|
.onRegister(addMovementBehaviour(FunnelMovementBehaviour.brass()))
|
||||||
.transform(BuilderTransformers.funnel("brass", Create.asResource("block/brass_casing")))
|
.transform(BuilderTransformers.funnel("brass", Create.asResource("block/brass_casing")))
|
||||||
.register();
|
.register();
|
||||||
|
@ -1045,6 +1063,7 @@ public class AllBlocks {
|
||||||
public static final BlockEntry<BrassBeltFunnelBlock> BRASS_BELT_FUNNEL =
|
public static final BlockEntry<BrassBeltFunnelBlock> BRASS_BELT_FUNNEL =
|
||||||
REGISTRATE.block("brass_belt_funnel", BrassBeltFunnelBlock::new)
|
REGISTRATE.block("brass_belt_funnel", BrassBeltFunnelBlock::new)
|
||||||
.initialProperties(SharedProperties::softMetal)
|
.initialProperties(SharedProperties::softMetal)
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.blockstate(new BeltFunnelGenerator("brass", Create.asResource("block/brass_block"))::generate)
|
.blockstate(new BeltFunnelGenerator("brass", Create.asResource("block/brass_block"))::generate)
|
||||||
.loot((p, b) -> p.registerDropping(b, BRASS_FUNNEL.get()))
|
.loot((p, b) -> p.registerDropping(b, BRASS_FUNNEL.get()))
|
||||||
.register();
|
.register();
|
||||||
|
@ -1093,6 +1112,7 @@ public class AllBlocks {
|
||||||
public static final BlockEntry<CreativeCrateBlock> CREATIVE_CRATE =
|
public static final BlockEntry<CreativeCrateBlock> CREATIVE_CRATE =
|
||||||
REGISTRATE.block("creative_crate", CreativeCrateBlock::new)
|
REGISTRATE.block("creative_crate", CreativeCrateBlock::new)
|
||||||
.transform(BuilderTransformers.crate("creative"))
|
.transform(BuilderTransformers.crate("creative"))
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.register();
|
.register();
|
||||||
|
|
||||||
public static final BlockEntry<NixieTubeBlock> NIXIE_TUBE = REGISTRATE.block("nixie_tube", NixieTubeBlock::new)
|
public static final BlockEntry<NixieTubeBlock> NIXIE_TUBE = REGISTRATE.block("nixie_tube", NixieTubeBlock::new)
|
||||||
|
@ -1107,7 +1127,7 @@ public class AllBlocks {
|
||||||
public static final BlockEntry<RedstoneLinkBlock> REDSTONE_LINK =
|
public static final BlockEntry<RedstoneLinkBlock> REDSTONE_LINK =
|
||||||
REGISTRATE.block("redstone_link", RedstoneLinkBlock::new)
|
REGISTRATE.block("redstone_link", RedstoneLinkBlock::new)
|
||||||
.initialProperties(SharedProperties::wooden)
|
.initialProperties(SharedProperties::wooden)
|
||||||
.tag(AllBlockTags.BRITTLE.tag)
|
.tag(AllBlockTags.BRITTLE.tag, AllBlockTags.SAFE_NBT.tag)
|
||||||
.blockstate(new RedstoneLinkGenerator()::generate)
|
.blockstate(new RedstoneLinkGenerator()::generate)
|
||||||
.addLayer(() -> RenderType::getCutoutMipped)
|
.addLayer(() -> RenderType::getCutoutMipped)
|
||||||
.item()
|
.item()
|
||||||
|
@ -1117,6 +1137,7 @@ public class AllBlocks {
|
||||||
public static final BlockEntry<AnalogLeverBlock> ANALOG_LEVER =
|
public static final BlockEntry<AnalogLeverBlock> ANALOG_LEVER =
|
||||||
REGISTRATE.block("analog_lever", AnalogLeverBlock::new)
|
REGISTRATE.block("analog_lever", AnalogLeverBlock::new)
|
||||||
.initialProperties(() -> Blocks.LEVER)
|
.initialProperties(() -> Blocks.LEVER)
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.blockstate((c, p) -> p.horizontalFaceBlock(c.get(), AssetLookup.partialBaseModel(c, p)))
|
.blockstate((c, p) -> p.horizontalFaceBlock(c.get(), AssetLookup.partialBaseModel(c, p)))
|
||||||
.item()
|
.item()
|
||||||
.transform(customItemModel())
|
.transform(customItemModel())
|
||||||
|
@ -1134,6 +1155,7 @@ public class AllBlocks {
|
||||||
public static final BlockEntry<AdjustableRepeaterBlock> ADJUSTABLE_REPEATER =
|
public static final BlockEntry<AdjustableRepeaterBlock> ADJUSTABLE_REPEATER =
|
||||||
REGISTRATE.block("adjustable_repeater", AdjustableRepeaterBlock::new)
|
REGISTRATE.block("adjustable_repeater", AdjustableRepeaterBlock::new)
|
||||||
.initialProperties(() -> Blocks.REPEATER)
|
.initialProperties(() -> Blocks.REPEATER)
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.blockstate(new AdjustableRepeaterGenerator()::generate)
|
.blockstate(new AdjustableRepeaterGenerator()::generate)
|
||||||
.item()
|
.item()
|
||||||
.model(AbstractDiodeGenerator.diodeItemModel(true))
|
.model(AbstractDiodeGenerator.diodeItemModel(true))
|
||||||
|
@ -1143,6 +1165,7 @@ public class AllBlocks {
|
||||||
public static final BlockEntry<AdjustableRepeaterBlock> ADJUSTABLE_PULSE_REPEATER =
|
public static final BlockEntry<AdjustableRepeaterBlock> ADJUSTABLE_PULSE_REPEATER =
|
||||||
REGISTRATE.block("adjustable_pulse_repeater", AdjustableRepeaterBlock::new)
|
REGISTRATE.block("adjustable_pulse_repeater", AdjustableRepeaterBlock::new)
|
||||||
.initialProperties(() -> Blocks.REPEATER)
|
.initialProperties(() -> Blocks.REPEATER)
|
||||||
|
.tag(AllBlockTags.SAFE_NBT.tag)
|
||||||
.blockstate(new AdjustableRepeaterGenerator()::generate)
|
.blockstate(new AdjustableRepeaterGenerator()::generate)
|
||||||
.addLayer(() -> RenderType::getCutoutMipped)
|
.addLayer(() -> RenderType::getCutoutMipped)
|
||||||
.item()
|
.item()
|
||||||
|
|
|
@ -163,5 +163,7 @@ public class AllTags {
|
||||||
AllBlockTags.FAN_TRANSPARENT.add(Blocks.IRON_BARS);
|
AllBlockTags.FAN_TRANSPARENT.add(Blocks.IRON_BARS);
|
||||||
|
|
||||||
AllBlockTags.FAN_HEATERS.add(Blocks.MAGMA_BLOCK, Blocks.CAMPFIRE, Blocks.LAVA, Blocks.FIRE);
|
AllBlockTags.FAN_HEATERS.add(Blocks.MAGMA_BLOCK, Blocks.CAMPFIRE, Blocks.LAVA, Blocks.FIRE);
|
||||||
|
|
||||||
|
AllBlockTags.SAFE_NBT.includeAll(BlockTags.SIGNS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,7 +74,7 @@ public class BlockMovementTraits {
|
||||||
return true;
|
return true;
|
||||||
if (blockState.getBlockHardness(world, pos) == -1)
|
if (blockState.getBlockHardness(world, pos) == -1)
|
||||||
return false;
|
return false;
|
||||||
if (AllBlockTags.NON_MOVABLE.tag.contains(block))
|
if (AllBlockTags.NON_MOVABLE.matches(blockState))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Move controllers only when they aren't moving
|
// Move controllers only when they aren't moving
|
||||||
|
|
Loading…
Reference in a new issue