i need help finding radius around my custom block

Started by jeux2119 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i need help finding radius around my custom block

i know their is 6x6x6 block check but i need to use it to find every lock around it and replace them with my other custom block if this isnt able to be made i can just make it check for grass blocks 

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use the 6x6x6…
Fri, 12/13/2024 - 13:31

You can use the 6x6x6 template, then modify it so that instead of checking for a block, it checks for not air at the same X Y Z locations as the block check, and instead of setting a variable to true, it places a block at the same X Y Z location as the check.

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
good idea klet me try 
Fri, 12/13/2024 - 14:58

good idea klet me try 

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
wait but how do you check…
Fri, 12/13/2024 - 15:00

wait but how do you check for not air

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
im so confused what combine…
Fri, 12/13/2024 - 15:13

im so confused what combine not and a block procedure

 

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is a procedure block…
Fri, 12/13/2024 - 15:21

There is a procedure block that allows you to check for air at a location, then you can replace X, Y, Z in it with X+SX, Y+SY, Z+SZ

Then you can attach a 'not' block in front of it, and move the (not(is air)) block combination to be where the ((get block at [] [] [])=([])) in the procedure is.

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i did it 
Fri, 12/13/2024 - 15:59

i did it 

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
altough i just realised the…
Fri, 12/13/2024 - 16:12

altough i just realised the the blocks are spawning like 


0 = grass still there

1= infected grass

2 is the plant


00001
00001
00201
00001
00001