Topic category: Troubleshooting, bugs, and solutions
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?
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 ;)
I think I've done it! Patched 1.9.1.
Let me know if I messed something up xD