Dispenser Wand Functionality for Sneak-Right Clicking. (#3165)

* Update TilePool.java

* Break Force Relay with dispenser.

Why not?

* Hopperhock cycle filter type with dispenser.

This could lead to new functionality and could certainly not break anything.

* Reverse or change turntable speed with wand.

Reverse if in function mode, or cycle speed if in bind mode.

* Look who missed a parenthesis.

* Fix crash.

* Lexicon Additions

Since these actions normally require sneaking, it may be ambiguous whether a dispenser can perform it.

* Fix typo in Spreader Turntable entry.

* Side distinction rather than mode distinction for turntable.
This commit is contained in:
Eutro authored and GitHub committed 2020-02-25 12:42:32 -06:00
1 parent d365273ead
commit 6f02a65c60
7 files changed
+23 -23

No files matched your search

@@ -117,10 +117,13 @@ public class BlockPistonRelay extends BlockMod implements IWandable {
@Override
public boolean onUsedByWand(PlayerEntity player, ItemStack stack, World world, BlockPos pos, Direction side) {
if(player == null || world.isRemote)
if(world.isRemote)
return false;
if(!player.isSneaking()) {
if(player == null || player.isSneaking()) {
spawnAsEntity(world, pos, new ItemStack(this));
world.destroyBlock(pos, false);
} else {
GlobalPos clicked = GlobalPos.of(world.getDimension().getType(), pos.toImmutable());
if(ItemTwigWand.getBindMode(stack)) {
activeBindingAttempts.put(player.getUniqueID(), clicked);
@@ -134,9 +137,6 @@ public class BlockPistonRelay extends BlockMod implements IWandable {
dest.getPos().getX(), dest.getPos().getY(), dest.getPos().getZ()));
}
}
} else {
spawnAsEntity(world, pos, new ItemStack(this));
world.destroyBlock(pos, false);
}
return true;