From e14de0b7234d9684f35f93ee75d259c3acf81787 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 28 Nov 2018 13:18:21 +0100 Subject: [PATCH] add the ability to disable the placer with redstone --- .../de/ellpeck/naturesaura/blocks/tiles/TileEntityPlacer.java | 2 ++ .../patchouli_books/book/en_us/entries/using/placer.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityPlacer.java b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityPlacer.java index 1643a3ef..8d64e265 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityPlacer.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityPlacer.java @@ -32,6 +32,8 @@ public class TileEntityPlacer extends TileEntityImpl implements ITickable { @Override public void update() { if (!this.world.isRemote && this.world.getTotalWorldTime() % 15 == 0) { + if (this.redstonePower > 0) + return; TileEntity tileUp = this.world.getTileEntity(this.pos.up()); if (tileUp == null || !tileUp.hasCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, EnumFacing.DOWN)) return; diff --git a/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/using/placer.json b/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/using/placer.json index 829aed86..7720d07f 100644 --- a/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/using/placer.json +++ b/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/using/placer.json @@ -6,11 +6,11 @@ "pages": [ { "type": "text", - "text": "A lot of activities require a person to be around, most of them for $(thing)placing$() blocks into the world. This, really, is a waste of personell in a time where $(aura) can work in its place. The $(item)Imperceptible Builder$() will place any blocks you supply it with for a small amount of $(aura) in return.$(p)The builder gathers the blocks for placement from a $(item)Chest$() placed on top of it." + "text": "A lot of activities require a person to be around, most of them for $(thing)placing$() blocks into the world. This, really, is a waste of personell in a time where $(aura) can work in its place. The $(item)Imperceptible Builder$() will place any blocks you supply it with for a small amount of $(aura) in return.$(br)The builder gathers the blocks for placement from any $(thing)item container$() placed on top of it." }, { "type": "text", - "text": "To specify which blocks it should then place them on, one needs to hang up an $(item)Item Frame$() on the builder and put the desired block inside of it. It will then place the blocks from the chest in an area of about $(thing)five blocks$().$(p)As an example, placing a piece of cobblestone into the frame and a stack of wooden planks into the chest will cause the planks to be placed on top of any cobblestone close by." + "text": "To specify which blocks it should then place them on, one needs to hang up an $(item)Item Frame$() on the builder and put the desired block inside of it. It will then place the blocks from the chest in an area of about $(thing)five blocks$().$(br)As an example, placing a piece of cobblestone into the frame and a stack of planks into the chest will cause the planks to be placed on top of any cobblestone close by.$(p)Supplying a redstone signal will disable the placing." }, { "type": "crafting",