Skip to content

Commit

Permalink
fix laser & optical pipes not dropping anything (#1197)
Browse files Browse the repository at this point in the history
  • Loading branch information
screret authored May 5, 2024
1 parent b2f262c commit 8be2bab
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "gtceu:normal_laser_pipe"
}
],
"rolls": 1.0
}
],
"random_sequence": "gtceu:blocks/normal_laser_pipe"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "gtceu:normal_optical_pipe"
}
],
"rolls": 1.0
}
],
"random_sequence": "gtceu:blocks/normal_optical_pipe"
}
4 changes: 2 additions & 2 deletions src/main/java/com/gregtechceu/gtceu/common/data/GTBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ private static void registerLaserPipeBlock(int index) {
var type = LaserPipeType.values()[index];
var entry = REGISTRATE.block("%s_laser_pipe".formatted(type.getSerializedName()), (p) -> new LaserPipeBlock(p, type))
.initialProperties(() -> Blocks.IRON_BLOCK)
.properties(p -> p.dynamicShape().noOcclusion().noLootTable())
.properties(p -> p.dynamicShape().noOcclusion())
.blockstate(NonNullBiConsumer.noop())
.defaultLoot()
.tag(GTToolType.WIRE_CUTTER.harvestTags.get(0))
Expand All @@ -409,7 +409,7 @@ private static void registerOpticalPipeBlock(int index) {
var type = OpticalPipeType.values()[index];
var entry = REGISTRATE.block("%s_optical_pipe".formatted(type.getSerializedName()), (p) -> new OpticalPipeBlock(p, type))
.initialProperties(() -> Blocks.IRON_BLOCK)
.properties(p -> p.dynamicShape().noOcclusion().noLootTable())
.properties(p -> p.dynamicShape().noOcclusion())
.blockstate(NonNullBiConsumer.noop())
.defaultLoot()
.tag(GTToolType.WIRE_CUTTER.harvestTags.get(0))
Expand Down

0 comments on commit 8be2bab

Please sign in to comment.