How to prevent players from placing blocks/fluids on a custom block

Started by RoboMan on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to prevent players from placing blocks/fluids on a custom block

I'm looking to create a block that cannot have other blocks placed on or next to it. How would I go about doing this?

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
when neighbor block changes…
Sun, 10/03/2021 - 02:32

when neighbor block changes remove block at X Y Z

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I would use this, but there…
Sun, 10/03/2021 - 02:57

I would use this, but there is a door that connects to one of these blocks, and I need players alone to not be able to place blocks on it, as I need blocks to be spawned in on top of them.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what?
Sun, 10/03/2021 - 03:09

what?

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
My explanation was awful, so…
Sun, 10/03/2021 - 03:18

My explanation was awful, so I'll try to explain it better. I am making a structure that I do not players to be able to place blocks on. In that structure is a door, and if it opened using the method you said, it would just delete the door.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
then make it so it says…
Sun, 10/03/2021 - 04:01

then make it so it says something like

if not block at X Y Z = YOUR_DOOR

etc etc etc 

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ah, I see. Thank you for…
Sun, 10/03/2021 - 04:04

Ah, I see. Thank you for your help.

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can do it by canceling…
Wed, 10/13/2021 - 10:46

You can do it by canceling the global trigger with the procedure

Cancel global trigger event