NBT tags not updating

Started by Robotoo on

Topic category: Help with MCreator software

Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
NBT tags not updating

im making a game with basically a custom energy type called cursed energy and basically i want to make it so that when you kill an ennemy that has a tag called curse then the cursedenergy tag will update by its original value + the ennemy's cursedenergyEXP / player's cursedenergy tag /2

its just a little formula for a level system probably not that good.

i put that in a global procedure with the trigger being entity dies and the if arguemnt being if target entity get iscurse tag == true.

i know this argument is getting passed because i tested it

i set it so that i have an overlay showing the cursedenergy tag on the screen but when i kill these ennemies nothing happens.

thanks for checking this out

 

Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks a lot for this…
Thu, 12/03/2020 - 11:12

thanks a lot for this response

Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and how would i go about…
Thu, 12/03/2020 - 11:20

and how would i go about making a player variable doi need to use a local variable with a special procedure like when player joins world or is there just something im missing?

Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is a zone in the…
Tue, 01/31/2023 - 18:36

There is a zone in the workspace called variables where you can add global variables (the procedure ones are local, so they get destroyed each time the procedure ends)