Adding a block procedure

Started by woodcreatures on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Adding a block procedure

Hi,

I'm stucked with a procedure

I want to add a block called "A" but only if no other block "A" are in radius otherwise my block can't be added.

Any hint ?

Have been trying everything but unsuccesfully. Template 6x6 can't have a way to have it working since it removes also my block "A" even if no other in radius

There is a command (replace) but still can't avoid to add X Y Z block.

Let me know if anyone has an idea

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I mean you could try by…
Mon, 10/11/2021 - 19:00

I mean you could try by making a Global World Logic Variable, when block placed of variable = true

do break block at x y z spawn item at x y z

else if variable = false

do  set to true

when block destroyed set to false