How to make my custom mob spawn from custom block like silver fish? It is posible yet?

Started by QB on

Topic category: Help with modding (Java Edition)

Last seen on 15:10, 2. Feb 2021
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make my custom mob spawn from custom block like silver fish? It is posible yet?
Thu, 06/27/2019 - 15:41 (edited)

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…
Fri, 06/28/2019 - 07:48

You can use on entity collides with block trigger and trigger procedure that spawns your mob with it.

Last seen on 15:10, 2. Feb 2021
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, so the player stil have…
Fri, 06/28/2019 - 10:14

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?

Last seen on 14:17, 4. Dec 2020
Joined Jul 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think what the collide…
Fri, 06/28/2019 - 10:55

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.

Last seen on 15:10, 2. Feb 2021
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm not sure I understand …
Fri, 06/28/2019 - 10:57

I'm not sure I understand "player brushes up against a block" it like cactus right?

Last seen on 14:17, 4. Dec 2020
Joined Jul 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, if the player is right…
Fri, 06/28/2019 - 10:59

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.

Last seen on 15:10, 2. Feb 2021
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, thanks for your help!
Fri, 06/28/2019 - 11:19

Ok, thanks for your help!