Remap shulker boxes to droppers (for a full block hitbox)

This commit is contained in:
KennyTV 2019-12-29 12:16:56 +01:00
parent edc4f71403
commit b339216533

View File

@ -349,16 +349,10 @@ public class BlockItemPackets1_11 extends BlockItemRewriter<Protocol1_10To1_11>
@Override @Override
protected void registerRewrites() { protected void registerRewrites() {
// ShulkerBoxes to EnderChest // ShulkerBoxes to Dropper
for (int i = 219; i < 235; i++) for (int i = 219; i < 235; i++)
rewrite(i) rewrite(i).repItem(new Item(158, (byte) 1, (short) 0, getNamedTag("1.11 " + BlockColors.get(i - 219) + " Shulker Box")))
.repItem(new Item(130, (byte) 1, (short) 0, getNamedTag("1.11 " + BlockColors.get(i - 219) + " Shulker Box"))) .repBlock(new Block(158, 0));
.repBlock(new Block(130, 4))
.blockEntityHandler((block, tag) -> {
tag.remove("id");
tag.put(new StringTag("id", "minecraft:chest"));
return tag;
});
// Observer to Dispenser // Observer to Dispenser
rewrite(218).repItem(new Item(23, (byte) 1, (short) 0, getNamedTag("1.11 Observer"))).repBlock(new Block(23, -1)); rewrite(218).repItem(new Item(23, (byte) 1, (short) 0, getNamedTag("1.11 Observer"))).repBlock(new Block(23, -1));