Replacing vanilla mob spawns

Started by Finemanederby on Tue, 05/17/2022 - 22:22

Topic category: Help with modding (Java Edition)

Last seen on 19:19, 9. Aug 2022
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Replacing vanilla mob spawns
Tue, 05/17/2022 - 22:22

I know this would require custom code but if someone is willing to help me I'm willing. I basically want to replace cows that spawn in the plains biome with bison. Does anybody know how I can do that? Using global procedures such as "on entity joins world" or "entity spawns" crashes the game upon world loading. 

Any help is appreciated! 

Last seen on 08:23, 31. May 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I cant check now, but try…
Wed, 05/18/2022 - 07:31

I cant check now, but try making a procedure that when cow spawn. Spawn bison then kill cow. Again im not 100% sure that there is a  procedure like this, but there might be. 

My discord if u need more help: BlueGamer91#2663

Last seen on 08:23, 31. May 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I cant check now, but try…
Wed, 05/18/2022 - 07:31

I cant check now, but try making a procedure that when cow spawn. Spawn bison then kill cow. Again im not 100% sure that there is a  procedure like this, but there might be. 

My discord if u need more help: BlueGamer91#2663

Last seen on 15:03, 17. Aug 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
When entity spawns trigger…
Wed, 05/18/2022 - 17:13

When entity spawns trigger

If entity = cow then spawn bison + despawn cow

 

Quite easy but risks to be laggy

Last seen on 19:19, 9. Aug 2022
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
It leaves a glitch ghost…
Thu, 05/26/2022 - 02:06

It leaves a glitch ghost behind using the despawn method. 

Last seen on 19:19, 9. Aug 2022
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Anybody?
Wed, 06/15/2022 - 14:22

Anybody?

Last seen on 08:32, 8. Aug 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
cow spawn - summon your…
Wed, 06/15/2022 - 15:21

cow spawn - summon your bison mob - damage cow ( enough to kill ) instead of despawning it. Maybe that will fix your glitch/ghost issue

Last seen on 19:19, 9. Aug 2022
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How can I also make it so it…
Thu, 06/16/2022 - 00:03

How can I also make it so it doesn't drop its items?

Last seen on 08:32, 8. Aug 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Make a loot table for cows…
Thu, 06/16/2022 - 00:46

Make a loot table for cows and put no items. that should work I think?

Last seen on 19:19, 9. Aug 2022
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
That would but I still want…
Thu, 06/16/2022 - 00:52

That would but I still want cows functioning normally outside of the plains 

Last seen on 08:32, 8. Aug 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hmm maybe whenever a bison…
Thu, 06/16/2022 - 00:59

Hmm maybe whenever a bison spawns do something along the lines of "wait 1 second " then make it run "/kill @e[type=item, r=x]" the radius being very small at the bisons position

Last seen on 02:23, 4. Aug 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
what if for somereason the…
Thu, 06/16/2022 - 01:07

what if for somereason the cow spawns on some items and then it despawns those other items too? and also making it only kill items of cows loot wont work as items already present could be those very items