BUG: Certain Procedure Blocks lose all functionality in Additional Global Triggers.

Started by StellaeLux on

Topic category: Troubleshooting, bugs, and solutions

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
BUG: Certain Procedure Blocks lose all functionality in Additional Global Triggers.
Wed, 10/09/2019 - 13:31 (edited)

There are only a few times where I start questioning whether programming languages are actually unambiguous or not.

In this case I created a procedure:

On Player Tick Update.

"Some code"

If (condition) is true

     do Sent to chat to all players "DebugMessage"

     do Deal 1 damage to provided entity.

"More code"

So I basically debugged to check whether the procedure would reach the Deal Damage and as I play tested, yes it did! Every 5 seconds I got the message "DebugMessage". However no damage was dealt...

Inside of this procedure I'm mostly setting and checking NBT tags with somewhere a "Set Entity Health to 0" down the road that does not trigger under any normal circumstance.

To check whether it was possible to use Deal [] damage to entity in On Player Tick Update, I recreated it in a different workspace:

if number nbt tag Counter < 1000

increment nbt tag Counter

else

deal 1 damage to provided entity

send message to all

set nbt tag Counter to 0

And as I originally expected, but were now surprised by, it worked!

So in both cases, I know for a FACT that the if statement in which the deal x damage to entity has returned true as I received the chat message, yet in my original workspace it failed to do any damage.

Does anyone know how to solve this or is this a bug?

Edited by StellaeLux on Wed, 10/09/2019 - 13:31
I have replied to you in the…
Sat, 10/12/2019 - 07:28

I have replied to you in the email how I would go with bugfinding in this case.

Check the "offtopic" part of the email I sent you too ;)

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think I've done it!…
Sat, 10/12/2019 - 13:16

I think I've done it! Patched 1.9.1.

Let me know if I messed something up xD