Started by
QB
on
Topic category: Help with Minecraft modding (Java Edition)
So I'm currently working on my mod and I don't know how to make my custom mob to spawn from a custom block when players go pass it (like silver fish spawn from stonebrick block if it spotted a player), can you guys help me? It is posible yet? Thank you very much!
Edited by QB on Thu, 06/27/2019 - 15:41
You can use on entity collides with block trigger and trigger procedure that spawns your mob with it.
Ok, so the player stil have to touch or break the block in order to trigger that proceduce right? It do not auto detect when a player is near by?
I think what the collide with block trigger does is if a player brushes up against a block, that will cause the procedure to activate so I do not believe there is an auto detect for entities that has been implemented yet.
I'm not sure I understand "player brushes up against a block" it like cactus right?
Yes, if the player is right next to the block so that they are touching or brushing up against it, it will activate the procedure.
Ok, thanks for your help!