Movable crate and a transforming cube

Started by INPS_Cullen on Tue, 07/16/2019 - 04:24

Topic category: Help with MCreator modding

Last seen on 07:44, 9. Aug 2019
Joined May 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Movable crate and a transforming cube
Tue, 07/16/2019 - 04:24

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 09:46, 23. Aug 2019
Joined Jun 2019
User points:

Statistics:

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