How do I make a block that can't be stacked or placed on walls?

Started by Tyler Kingpig on

Topic category: Help with modding (Java Edition)

Last seen on 03:18, 31. Oct 2020
Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a block that can't be stacked or placed on walls?

Hello, I can't seem to figure out how to make a block that can't be placed on walls or stacked. I cannot code at all, so coding is not going to work. Thanks in advance!

Last seen on 17:03, 1. Mar 2024
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make an item that places the…
Wed, 01/08/2020 - 16:57

make an item that places the block, then make a procedure when right clicking on a block, check what face of the block the player is facing, if the player is facing a wall (west, east, north, south) when right clicking with the item place the block and set the block's rotation to match the wall's rotation, also consume the item when placing the block.

first set your block's rotation to face the block's face where you placed it.

you can make then a tag with blocks that you don't want to be stacked togheter , then add to the item's right click procedure, check if the wall has the unstackable tag, if true then don't place the block.

 

Hopefully i was helpful , it is quite hard to understand and it needs some advanced procedures , hopefully you'll understand what it wrote.

Have a nice day

-Fred

Last seen on 03:18, 31. Oct 2020
Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks! It worked!
Sat, 01/11/2020 - 06:08

Thanks! It worked!

Last seen on 03:18, 31. Oct 2020
Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you tell me where all…
Sat, 01/11/2020 - 17:32

Could you tell me where all the procedures are? lol, I'm bad at finding things.

Last seen on 16:50, 8. May 2020
Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the problem i am having is i…
Wed, 05/06/2020 - 18:01

the problem i am having is i made a custom wooden log but i cant place it on top of its self like a normal log i cant build up with it anyone know how to fix this