Started by
DeltAxShaRD
on
Topic category: Help with Minecraft modding (Java Edition)
Similar to iron golems. its like an activation structure. how do i check a 3x3 area for blocks?
Obsidian | ||
Stone | Endstone | Stone |
like this ^ but i want a "fountain" structure. (3x3 square with the center being 1x2 tall)
Another thing is the fact that this structure is linked with certain mobs spawning. when the structure is built. certain mobs will start spawning. How do i prevent mobs from spawning unless this structure is built?
Can someone help me?
Edited by DeltAxShaRD on Thu, 06/18/2020 - 01:58
I believe there are many forums on MCreator that show how to do that, and I believe videos.
Just check for blocks nearby either by using a tile entity, or preferably, on block placed.
There are two methods that "pop" right in my head upon reading this;
1. Put a block in your structure that uses a tile entity and random number generation to spawn entities nearby.
2. Manually check for the nearby structure using,
While number 2 is the "correct" way of doing it. Option 1 should be a lot easier to do, and will work just as well.
Oops!
Forgot to leave you with this link,
https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei
oh i should of clarified. the mobs spawn like any natural mob. just with a structure. similar to those herobrine mods.
Oh, so you just want the entity to spawn within the structure?
That's a lot easier and shouldn't need any custom coding.