Movable crate and a transforming cube

Started by INPS_Cullen on

Topic category: Help with modding (Java Edition)

Last seen on 04:34, 20. May 2022
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Movable crate and a transforming cube

Just need some code ideas on how to make a pushable box (basically my idea was when I right click it would move it 1 block in the direction I'm facing, ie: if I'm facing north then when I right click it would move the block north by 1) But then 1 problem came up and that's the fact that if there's a wall in the way it would replace the wall, not good for puzzle maps.)

And then i wanted to make a block that changes textures (or just replaces it with another block) when powered Redstone is connected to it.

Any tutorials or ideas on how to make this possible?

Thanks , INPS.

Last seen on 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
1. check for the direction…
Sun, 07/21/2019 - 00:08

1. check for the direction you are looking at is air, otherwise dont move

2. you need to make 2 blocks

setblock x,y,z = powered state when redstone on

setblock x,y,z= unpowered when off