Started by
blockheadnoob
on
Topic category: Help with Minecraft modding (Java Edition)
Hello!
I'm trying to set a boolean in one procedure and access it in another one.
In the screen cap, when a player is vulnerable (a variable I set in another procedure) accumulate all damage taken. When I try to add an If condition about If (Vulnerable = True), I get an error that "You have selected external trigger that does not provide the following dependencies: Arguments".
Is Get Command Logic Param the wrong call?
Entity attacked is not When command is executed, so it obviously can not pass arguments from a command, as there is no command.
I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei
I'm sorry I'm not following you. I don't expect the above command to be when the attack command is executed.
When a player is attacked, I'm trying to check for a property on the attacked player called Vulnerable, and if it's true get the damage done to the player and add it to another variable to get the total amount of hit points.
What I've been looking for is a way to determine what entity was attacked from this event, and if it's a player, be able to get and assign variables to that player. Is there a better way to accomplish this as maybe I've got the wrong approach?
You want get/set NBT logic value, not command logic parameter.
Set 'Vulnerable' as NBT on the player
will give this a shot Lofty, thank you!