Mini solution to a problem I had about entity spawn

Started by a guy called l… on Sun, 01/31/2021 - 17:25

Topic category: Help with modding (Java Edition)

Last seen on 16:27, 6. Apr 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Mini solution to a problem I had about entity spawn
Sun, 01/31/2021 - 17:25

I recently had a problem with my hostile entity, which only appeared at night / dark even though I had set it as ambient spawn type, obviously I have to put it on mob and not creature, because a creature cannot attack

Well, my solution is to create an equal mob (in texture) but that IS a creature so that it spawns not only at night, but that when it exists, it becomes the hostile entity

I do not know if it will work, I will try it, if someone has a better solution it would be a pleasure to say it

Last seen on 01:45, 5. Apr 2021
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
what I did in my mod was to…
Tue, 03/02/2021 - 02:53

what I did in my mod was to put the weight of spawn at 101 this makes the entity appear in any piece that is a little dark, your entity will not appear in open fields but it will appear under any tree and etc and then he can walk around making it look like he's born anywhere

Last seen on 18:46, 8. Apr 2021
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
in the entity's spawning…
Tue, 03/02/2021 - 07:30

in the entity's spawning properties, use the custom spawning conditions. creating a custom spawning conditions procedure will override vanilla spawning conditions (which checks for light level and other stuff).

Last seen on 16:27, 6. Apr 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I had tried the procedures…
Tue, 03/02/2021 - 13:11

I had tried the procedures and when I put that it should appear in only light it simply did not appear in absolutely any place But, if it served my idea, when the passive mob appears, it replaces the hostile one in the first tick and it works perfectly