When player around block

Started by dizorthy on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When player around block
Sat, 02/18/2023 - 15:22 (edited)

Hello guys. Maybe someone will help me with this. 
 

So i want to create radiation in my world. I want to implement it like this

I have 1 block and 2 variables. If player around block, one variable will set to 1 if player will go away far enough, to 0

And when the first variable will be 1, the second one will start increasing, if first 0, the second stops increasing at this moment


maybe i can make it easier, idk
also sorry for my english, im french :D
 

Edited by dizorthy on Sat, 02/18/2023 - 15:22