"Is entity sneaking" not working properly

Published by aidanete on
Status
Works as designed
Issue description

Actually, there is a procedure block for detecting when the player/entity is sneaking, but, I tested it and it doesn't work in any moment that I used it. I used it on a rightclick event, and in walking over block event. Why?

Information:

  • Test subject: Me, I don't know any enemy that can sneak...
  • MCreator version: 1.8.3
  • Purpose: I want to teleport me to another place when I shift over a block. Also, I want to make a block that when you rightclick on it while sneaking it shows a message.
  • Extra info: When I deleted the "is sneaking" procedure block of the teleport pad, the teleport worked successfully.

 

Issue comments

The screenshot does not show which mod element to check, only procedures. Which block to test?

Ok, in the mod there is a mana teleporter, the teleporter should teleport to certain coordinates selected when sneaking above it, if you don't set them, at least a sound of teleporting will be heard. If you hold the wrench and shift-rightclick over the block it should show the destination coordinates. Any of these things work only if I don't put the sneaking block, but I want to make a requirement to sneak.

Note, if you're on survival mode, you will need 3 of mana dust to make it work...

I have checked your mod and I can confirm this is happening, but the real cause is that On block right clicked and When entity walks on the block events are not triggered by Minecraft when the player is sneaking and unfortunately there is no way around this.