Skip to content
This repository has been archived by the owner on Nov 18, 2023. It is now read-only.

Commit

Permalink
Fixed pipes having no drop. Fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulvdberge committed Mar 25, 2020
1 parent ea90eb9 commit 6fa6ff2
Show file tree
Hide file tree
Showing 14 changed files with 85 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# Refined Pipes Changelog

## 0.1.1
Note: Pipes that are placed in the world from version 0.1 will all be removed, since the IDs have changed.

- Renamed "Pipe" to "Item Pipe" (raoulvdberge)
- Added different tiers for the Extractor Attachment: Basic, Improved and Advanced (raoulvdberge)
- Fixed missing model variant errors (raoulvdberge)
- Fixed pipes having no drops (raoulvdberge)

## 0.1
- Initial release
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class ItemPipeBlock extends Block {
private final ItemPipeType type;

public ItemPipeBlock(ItemPipeType type) {
super(Block.Properties.create(Material.ROCK));
super(Block.Properties.create(Material.ROCK).hardnessAndResistance(0.35F));

this.type = type;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.raoulvdberge.refinedpipes.network.NetworkManager;
import com.raoulvdberge.refinedpipes.network.pipe.ItemPipe;
import com.raoulvdberge.refinedpipes.network.pipe.ItemPipeType;
import com.raoulvdberge.refinedpipes.network.pipe.attachment.Attachment;
import com.raoulvdberge.refinedpipes.network.pipe.attachment.AttachmentRegistry;
import com.raoulvdberge.refinedpipes.network.pipe.attachment.AttachmentType;
import com.raoulvdberge.refinedpipes.network.pipe.transport.ItemTransport;
Expand Down Expand Up @@ -151,6 +152,10 @@ public void remove() {
for (ItemTransport transport : pipe.getTransports()) {
InventoryHelper.spawnItemStack(world, pos.getX(), pos.getY(), pos.getZ(), transport.getValue());
}

for (Attachment attachment : pipe.getAttachmentManager().getAttachments()) {
InventoryHelper.spawnItemStack(world, pos.getX(), pos.getY(), pos.getZ(), attachment.getType().toStack());
}
}

mgr.removePipe(pos);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "refinedpipes:advanced_item_pipe"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "refinedpipes:basic_item_pipe"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "refinedpipes:improved_item_pipe"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "refinedpipes:simple_item_pipe"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

0 comments on commit 6fa6ff2

Please sign in to comment.