Create a region

Started by IntellegibileC… on

Topic category: Advanced modding

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create a region

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…
Fri, 02/12/2021 - 10:42

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.

Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes it's possible ad easy…
Wed, 12/14/2022 - 15:16

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