Adding a block procedure

Started by woodcreatures on

Topic category: Help with Minecraft modding (Java Edition)

Active 8 months ago
Joined Mar 2021
Points:
1032

User statistics:

  • Modifications: 3
  • Forum topics: 37
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 451
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

Active 1 year ago
Joined Oct 2020
Points:
1629

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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

 

Active 1 year ago
Joined Oct 2020
Points:
1629

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
if*
Mon, 10/11/2021 - 19:00

if*