Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
" ",
"GRG",
"RIR"
],
"key": {
"G": {
"item": "minecraft:glass_pane"
},
"R": {
"item": "minecraft:redstone"
},
"I": {
"item": "minecraft:iron_ingot"
}
},
"result": {
"id": "arlib:item_holo_projector",
"count": 1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@

public class AstrobodyDataProcessor extends BlockMultiblockMaster {
public AstrobodyDataProcessor() {
super(Properties.of().destroyTime(0.5f));
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
);
}

@Override
Expand Down
5 changes: 4 additions & 1 deletion advRocketry/src/main/java/advRocketry/Blocks/CargoHold.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@

public class CargoHold extends Block implements EntityBlock {
public CargoHold() {
super(Properties.of().destroyTime(0.5f));
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@

public class DataStorageBlock extends BlockMultiblockPart implements EntityBlock {
public DataStorageBlock() {
super(Properties.of().destroyTime(0.5f));
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
);
this.isSpecialBlock = true;
}

Expand Down
5 changes: 4 additions & 1 deletion advRocketry/src/main/java/advRocketry/Blocks/Drill.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@

public class Drill extends Block implements ICustomWeightBlock {
public Drill() {
super(Properties.of().destroyTime(0.5f));
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@

public class FluidRelease extends Block implements EntityBlock {
public FluidRelease() {
super(Properties.of().destroyTime(0.5f).sound(SoundType.ANVIL));
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
.sound(SoundType.ANVIL)
);
registerDefaultState(getStateDefinition().any().setValue(BlockStateProperties.HORIZONTAL_FACING, Direction.NORTH));
}

Expand Down
6 changes: 5 additions & 1 deletion advRocketry/src/main/java/advRocketry/Blocks/FuelTank.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@

public class FuelTank extends Block implements ICustomWeightBlock {
public FuelTank() {
super(Properties.of().noOcclusion().destroyTime(0.5f));
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
.noOcclusion()
);
registerDefaultState(getStateDefinition().any().setValue(BlockStateProperties.DOWN, false).setValue(BlockStateProperties.UP, false));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@

public class FuelingStation extends Block implements EntityBlock {
public FuelingStation() {
super(Properties.of().destroyTime(0.5f));
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
);
}

@Override
Expand Down
5 changes: 4 additions & 1 deletion advRocketry/src/main/java/advRocketry/Blocks/GasIntake.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@

public class GasIntake extends Block implements ICustomWeightBlock {
public GasIntake() {
super(Properties.of().destroyTime(0.5f));
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@

public class GuidanceComputer extends Block implements EntityBlock {
public GuidanceComputer() {
super(Properties.of().destroyTime(0.5f));
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
);
}


Expand Down
5 changes: 4 additions & 1 deletion advRocketry/src/main/java/advRocketry/Blocks/LaunchPad.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ public class LaunchPad extends Block {
public static BooleanProperty south = BlockStateProperties.SOUTH;

public LaunchPad() {
super(Properties.of());
super(Properties.of()
.destroyTime(1.0f)
.requiresCorrectToolForDrops()
);
BlockState state = getStateDefinition().any();
state = state.setValue(east, false);
state = state.setValue(north, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ public class LaunchStation extends Block implements EntityBlock {
public static EnumProperty<State> STATE = EnumProperty.create("state", State.class);

public LaunchStation() {
super(Properties.of().destroyTime(0.5f).isRedstoneConductor((x,y,z) -> false));

super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
.isRedstoneConductor((x,y,z) -> false)
);
registerDefaultState(getStateDefinition().any()
.setValue(BlockStateProperties.HORIZONTAL_FACING, Direction.NORTH)
.setValue(LaunchStation.STATE, LaunchStation.State.idle)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
public class LaunchStationAsteroidMissions extends LaunchStation {

public LaunchStationAsteroidMissions() {
super();
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
public class LaunchStationGasMiningMissions extends LaunchStation {

public LaunchStationGasMiningMissions() {
super();
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
public class LaunchStationSatelliteMissions extends LaunchStation {

public LaunchStationSatelliteMissions() {
super();
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ public class Observatory extends BlockMultiblockMaster {
public static EnumProperty<TaskState> TASK_STATE = EnumProperty.create("task_state", TaskState.class);

public Observatory() {
super(Properties.of().destroyTime(0.5f));
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
);
registerDefaultState(defaultBlockState().setValue(TASK_STATE, TaskState.idle));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@

public class OrientationController extends Block implements EntityBlock {
public OrientationController() {
super(Properties.of().destroyTime(0.5f));
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
);
registerDefaultState(getStateDefinition().any().setValue(BlockStateProperties.HORIZONTAL_FACING, Direction.NORTH));
}

Expand Down
5 changes: 4 additions & 1 deletion advRocketry/src/main/java/advRocketry/Blocks/OxygenVent.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
public class OxygenVent extends Block implements EntityBlock{

public OxygenVent() {
super(Properties.of().destroyTime(0.5f));
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ public class PressureTank extends Block implements EntityBlock {
public static BooleanProperty connectedAbove = BooleanProperty.create("connected_up");

public PressureTank() {
super(Properties.of().noOcclusion().destroyTime(0.3f).sound(SoundType.GLASS));

super(Properties.of()
.destroyTime(0.3f)
.requiresCorrectToolForDrops()
.sound(SoundType.GLASS)
.noOcclusion()
);
registerDefaultState(
defaultBlockState()
.setValue(connectedAbove, false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
public class RocketAssembler extends Block implements EntityBlock {

public RocketAssembler() {
super(Properties.of().destroyTime(0.5f).sound(SoundType.ANVIL));
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
.sound(SoundType.ANVIL)
);
registerDefaultState(getStateDefinition().any().setValue(BlockStateProperties.HORIZONTAL_FACING, Direction.NORTH));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ public class RocketFluidLoader extends Block implements EntityBlock {
public static BooleanProperty IS_DRAIN = BooleanProperty.create("is_drain");

public RocketFluidLoader() {
super(Properties.of().destroyTime(0.5f));
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
);
BlockState state = getStateDefinition().any().setValue(IS_DRAIN, false);
registerDefaultState(state);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ public class RocketItemLoader extends Block implements EntityBlock {
public static BooleanProperty IS_DRAIN = BooleanProperty.create("is_drain");

public RocketItemLoader() {
super(Properties.of().destroyTime(0.5f));
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
);
BlockState state = getStateDefinition().any().setValue(IS_DRAIN, false);
registerDefaultState(state);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@

public class RocketMotor extends Block implements ICustomWeightBlock {
public RocketMotor() {
super(Properties.of().noOcclusion().destroyTime(0.5f));
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
.noOcclusion()
);
}

public float getThrust() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@

public class RocketMotorImproved extends RocketMotor implements ICustomWeightBlock {
public RocketMotorImproved() {
super();
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
);
}

public float getThrust() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@
public class SatelliteAssembler extends Block implements EntityBlock {

public SatelliteAssembler() {
super(Properties.of().destroyTime(0.5f).sound(SoundType.ANVIL));
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
.sound(SoundType.ANVIL)
);
registerDefaultState(getStateDefinition().any().setValue(BlockStateProperties.HORIZONTAL_FACING, Direction.NORTH));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ public class SatelliteMonitor extends Block implements EntityBlock {
public static EnumProperty<State> STATE = EnumProperty.create("state", State.class);

public SatelliteMonitor() {
super(Properties.of().destroyTime(0.5f));
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
);
registerDefaultState(getStateDefinition().any()
.setValue(BlockStateProperties.HORIZONTAL_FACING, Direction.NORTH)
.setValue(SatelliteMonitor.STATE, SatelliteMonitor.State.idle)
Expand Down
5 changes: 4 additions & 1 deletion advRocketry/src/main/java/advRocketry/Blocks/SolarPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@

public class SolarPanel extends Block implements EntityBlock {
public SolarPanel() {
super(Properties.of().destroyTime(0.5f));
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
public class SpaceStationAssembler extends RocketAssembler implements EntityBlock {

public SpaceStationAssembler() {
super();
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@

public class StationController extends Block implements EntityBlock {
public StationController() {
super(Properties.of().destroyTime(0.5f));
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
);
registerDefaultState(getStateDefinition().any().setValue(BlockStateProperties.HORIZONTAL_FACING, Direction.NORTH));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@

public class WarpController extends Block implements EntityBlock {
public WarpController() {
super(Properties.of().destroyTime(0.5f));
super(Properties.of()
.destroyTime(2.0f)
.requiresCorrectToolForDrops()
);
registerDefaultState(getStateDefinition().any().setValue(BlockStateProperties.HORIZONTAL_FACING, Direction.NORTH));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ public class WirelessTransceiver extends Block implements EntityBlock {
public static EnumProperty<State> STATE = EnumProperty.create("state", State.class);

public WirelessTransceiver() {
super(Properties.of().noOcclusion().strength(0.2f));
super(Properties.of()
.strength(0.2f)
.requiresCorrectToolForDrops()
.noOcclusion()
);
registerDefaultState(
getStateDefinition().any()
.setValue(BlockStateProperties.FACING, Direction.NORTH)
Expand Down
Loading