Started by
deltagodzilla
on
Topic category: Help with Minecraft modding (Java Edition)
I would like to make mobs that will only spawn on a specific block exclusively for an upcoming mod that I am making. I have tried using procedures to achieve this, but to no avail. to make a long story short, the result of the procedures is as follows: when the specific block is not present, they will not spawn. when the block is present they will spawn, but, they will spawn on any block rather than only spawning on this specific block.
you could try using external spawn conditions trigger or make them despawn right after they spawn if the block under them isn't valid
or making your custom block have a very small chance of spawning them but it might lag if you place down a lot
I tried adding a additional spawning condition, but the entities stopped spawning all together (including in the dimension which is literally carpeted by the blocks they spawn on. Here is the procedure used.
Event trigger- triggered by external call
or when (global trigger) no additional trigger
if get block at x: x y: y z: z = infested sprout
do spawn at x: x y: y z: z living entity: Custom: InfestedWalker
return true
return false
is the infested sprout a plant? if so, that may be the reason
The infested sprout is a plant, but is not classified as a plant.