Help, How do I disable a block in a dimension?

Started by EnderKasra on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help, How do I disable a block in a dimension?

Hello! in my mod I want to disable a block in a dimension, the block is nether portal lmao, i want it whenever its placed it get removed. how can I do that?

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create a procedure on world…
Tue, 09/26/2023 - 17:02

Create a procedure on world tick. Create an if statement to make sure the player is in the dimension and then use the remove block inside the if statement.