From 5a1f689b510f2339bbfb113fa015dfcecdc67699 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 19 Sep 2023 22:34:48 +0200 Subject: [PATCH] improved adept hopper interaction to not require sneaking closes #326 --- .../java/de/ellpeck/naturesaura/blocks/BlockGratedChute.java | 2 -- .../book/en_us/entries/devices/grated_chute.json | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/BlockGratedChute.java b/src/main/java/de/ellpeck/naturesaura/blocks/BlockGratedChute.java index 622c7159..ee8d03c0 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/BlockGratedChute.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/BlockGratedChute.java @@ -87,8 +87,6 @@ public class BlockGratedChute extends BlockContainerImpl implements ICustomBlock @Override @SuppressWarnings("deprecation") public InteractionResult use(BlockState state, Level levelIn, BlockPos pos, Player player, InteractionHand handIn, BlockHitResult hit) { - if (!player.isShiftKeyDown()) - return InteractionResult.FAIL; var tile = levelIn.getBlockEntity(pos); if (!(tile instanceof BlockEntityGratedChute chute)) return InteractionResult.FAIL; diff --git a/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/devices/grated_chute.json b/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/devices/grated_chute.json index a4325a8a..47e3d497 100644 --- a/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/devices/grated_chute.json +++ b/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/devices/grated_chute.json @@ -14,11 +14,11 @@ }, { "type": "text", - "text": "Additionally, the $(item)Adept Hopper$()'s functionality can be $(thing)inverted$() simply by interacting with it while sneaking: This will cause not items $(italic)in$() the frames to be accepted, but all items that are $(italic)not$() in the frames. This, additionally, allows for throughput of any item, simply by not placing down any frames at all." + "text": "Additionally, the $(item)Adept Hopper$()'s functionality can be $(thing)inverted$() simply by interacting with it: This will cause not items $(italic)in$() the frames to be accepted, but all items that are $(italic)not$() in the frames. This, additionally, allows for throughput of any item, simply by not placing down any frames at all." }, { "type": "crafting", - "text": "Creating the $(item)Adept Hopper$()$(p)It should be noted that, when equipping an $(l:items/eye)Environmental Eye$(), the amount of items currently stored in the hopper can be seen.", + "text": "Creating the $(item)Adept Hopper$()$(p)It should be noted that, when equipping an $(l:items/eye)Environmental Eye$(), the amount of items currently stored in the hopper, as well as its current mode, can be seen.", "recipe": "naturesaura:grated_chute" } ]