Add Variable when entity is hit with tool.

Started by Igoris on Sun, 11/29/2020 - 13:39

Topic category: Help with MCreator software

Last seen on 11:10, 8. Dec 2020
Joined Nov 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Add Variable when entity is hit with tool.
Sun, 11/29/2020 - 13:39

Hello everyone.

I'm trying to create sword that collects stacks for damage for every hit entity and after 500 player ticks reset value. I added 2 global variables.

Variables

I added script for sword "When living entity is hit with tool"

Script


 Problem is that when entity is hit, value (SwordTypeYellowStacks) is not changing.

If someone know how to fix it, please write here. :3