Started by
CurseFlameYT
on
Topic category: Help with Minecraft modding (Java Edition)
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?
Topic category: Help with Minecraft modding (Java Edition)
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?
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
ookay
Thanks