i need help finding radius around my custom block

Started by jeux2119 on

Topic category: Help with Minecraft modding (Java Edition)

Active 8 months ago
Joined Jan 2023
Points:
411

User statistics:

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

Active 1 hour ago
Joined Apr 2023
Points:
661

User statistics:

  • Modifications: 4
  • Forum topics: 22
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 540
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.

Active 8 months ago
Joined Jan 2023
Points:
411

User statistics:

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

good idea klet me try 

Active 8 months ago
Joined Jan 2023
Points:
411

User statistics:

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

wait but how do you check for not air

Active 8 months ago
Joined Jan 2023
Points:
411

User statistics:

  • Modifications: 0
  • Forum topics: 14
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 104
nvm
Fri, 12/13/2024 - 15:04

nvm

Active 8 months ago
Joined Jan 2023
Points:
411

User statistics:

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

im so confused what combine not and a block procedure

 

Active 1 hour ago
Joined Apr 2023
Points:
661

User statistics:

  • Modifications: 4
  • Forum topics: 22
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 540
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.

Active 8 months ago
Joined Jan 2023
Points:
411

User statistics:

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

i did it 

Active 8 months ago
Joined Jan 2023
Points:
411

User statistics:

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

Active 1 hour ago
Joined Apr 2023
Points:
661

User statistics:

  • Modifications: 4
  • Forum topics: 22
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 540
It looks like either X or Z…
Fri, 12/13/2024 - 19:00

It looks like either X or Z axis is not increasing, which means that you must have accidentally removed a part of the procedure base, just compare what the positioning of your 'set variable to variable + 1' blocks are compared to the original procedure template by loading in a new procedure with the template, you should be able to tell where it is missing.

Active 8 months ago
Joined Jan 2023
Points:
411

User statistics:

  • Modifications: 0
  • Forum topics: 14
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 104
thanks  
Sun, 12/15/2024 - 12:44

thanks