(SOLVED) The variable gets +1 per tick for each entity within the radius of a square cube

Started by ImSeyo on

Topic category: Help with modding (Java Edition)

Last seen on 10:18, 27. Apr 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(SOLVED) The variable gets +1 per tick for each entity within the radius of a square cube
Thu, 02/29/2024 - 17:27 (edited)

I have created a procedure for a block that determines if there is an entity within a radius of 10 blocks, then the block variable gets +1. The fact is that if there is more than 1 entity in the radius, then the variable is replenished faster for each entity in the radius. That is, if 2 entities are included in the radius, then the variable gets +2. It shouldn't be like this! The variable should receive +1, even if there are 100 entities within a radius. I tried to find a solution, but I couldn't.

Edited by ImSeyo on Thu, 02/29/2024 - 17:27
Last seen on 10:18, 27. Apr 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I decided to use NBT tagsā€¦
Sun, 02/25/2024 - 07:35

I decided to use NBT tags and variables and it worked