How to make piston type block

Started by CurseFlameYT on Wed, 06/10/2020 - 03:43

Topic category: Help with modding (Java Edition)

Last seen on 01:09, 29. Oct 2020
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make piston type block
Wed, 06/10/2020 - 03:43

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?

 

Last seen on 23:27, 4. Apr 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 01:09, 29. Oct 2020
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
ookay Thanks
Wed, 06/10/2020 - 20:12

ookay

Thanks