Started by
Kit_Kat_1879
on
Topic category: Help with Minecraft modding (Java Edition)
I want to create an Infection Mod in mc Creator. Can anybody help me create the infection procedure? In a radius of a ball with 6 blocks radius from an block i want to replace the normal minecraft blocks with a first state but not these again and not air or a fluid. how can i do it?
You need to get the equation of a sphere, in block points. You then check each block in a spherical area of size of your choosing and you check each block = not air, not fluid etc use a tag. Then if requirements are reaches, replace the block with your infection block.
Look up how to make spheres in mcreator forum and you should find something useful. You only need the shape equation.