How to make piston type block

Started by CurseFlameYT on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make piston type block

How might I make a piston type block? As in, get one block to the side that it is facing, move it two spaces, and delete the original?

 

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use block procedures to "Get…
Wed, 06/10/2020 - 18:28

Use block procedures to "Get block at x y z" and "Get block direction", use logic if get block direction = down, up, north, south, weat, or east, do "Place "get block at x(+1 or -1, or 0) y(+1 or -1, or 0) z(+1 or -1, or 0)" at x(+ or -2, or 0) y(+ or -2, or 0) z(+ or -2, or 0)" and then "remove block" at respective block direction, you will have to make custom if for each scenario.

I know this is confusing, you just need to get the block that is at the coordinate that corresponds to which position your custom piston is facing and place it to one block further according to this coordinate and the direction, and delete it from the original coordinate