add a procedure to detect the coordinates of a certain block

Started by camro3892 on

Topic category: Help with modding (Java Edition)

Last seen on 16:40, 26. Jun 2023
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
add a procedure to detect the coordinates of a certain block
Sat, 04/01/2023 - 17:12 (edited)

i've been working on this mod and i need this to complete it 

it will basically working by detecting coords of a certain block and if u put that in an if procedure then i can be able to do many many things with it

this was supposed to be suggestion with the software but i didnt realise what the section said

Edited by camro3892 on Sat, 04/01/2023 - 17:12
Last seen on 17:59, 7. Jan 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Slight problem i can see…
Sat, 04/01/2023 - 17:52

Slight problem i can see with this - what happens if theres 4 blocks with the same ids? or 10? or a million?

Last seen on 10:36, 15. Oct 2023
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
go to the block triggers and…
Sat, 04/15/2023 - 18:28

go to the block triggers and go to update tick, there you can do whatever you want with the block. If you want it's coords make 3 global  number variables and make the block set one of them to the block's x, the other to the blocks y, and the third to the blocks z. Then you can use the variables in another procedure where you want the blocks coords