Started by
IntellegibileC…
on
Topic category: Advanced modding
Hi everyone, i'm trying to create a mod that when you click with a particular item on a block a variable get the position of the block, after you can click another block and another variable take the position of the second block. And all the blocks beetween the two blocks take a particular tag NBT.
It is possible to do this with procedure blocks? Or i have to use directly Custom element write with Forge API?
Thanks for the answer and i'm sorry for my bad english
On block right-clicked provides you click location. You can store this value in variables (eg. player variable) to then compare it with click on another block.
yes it's possible ad easy You just need t create first 3 variable's like: X1 Y1 Z1 and for the second possition you create als 3 variable's like: X2 Y2 Z2
after you create a procedure that says:
if a block is right clicked
if: Variable X1 = 0
- if Variable Y1 = 0
-- if Variable Z1= 0
do:
- do:
-- do: setvar X1 get x position of right clicked block
setvar Y1 get y position of right clicked block
setvar Z1 get z position of right clicked block
else
do: setvar X2 get x position of right clicked block
setvar Y2 get y position of right clicked block
setvar Z2 get z position of right clicked block