Topic category: Help with MCreator software
I'm trying to create an item that, when used, will kill the player and apply a potion effect to them on respawn. I want to ensure that only the player in question gets the effect, and that they need to use the item again to get the potion effect again rather than keeping it indefinitely. I've been following some older tutorials that can still be followed without issue (no renamed/altered/missing functions) and all say more or less the same thing, but to no success.
For the sake of example, I've replicated it on a testing-stick item that kills applies blindness on respawn to avoid anything external potentially tampering with the result, but it doesn't work either.
The teststick itself just looks like this: https://files.catbox.moe/rle5h5.png
The respawn function looks like this: https://files.catbox.moe/909pdv.png
And the TestVar present is a PLAYER_PERSISTANT scope, logic type variable that defaults to false.
Nevermind, the variable type was the fault. For some reason it can't check logic variables but can check what seems like every other type, so swapping a true/false logic variable with a 0/1 number variable solved the issue. That didn't work for the original item so I disregarded the possibility of it being the issue with the stick, but apparently that's because I set the 0/1 var type then checked for true/false anyway.
Have to say though, feels like a bug that true/false can't be checked in that way.