Add Variable when entity is hit with tool.

Started by Igoris on

Topic category: Help with MCreator software

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add Variable when entity is hit with tool.

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