Replacing vanilla mob spawns

Started by Finemanederby on

Topic category: Help with modding (Java Edition)

Last seen on 20:08, 6. Sep 2022
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Replacing vanilla mob spawns

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 19:24, 17. Sep 2023
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 19:24, 17. Sep 2023
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 06:05, 28. Mar 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 20:08, 6. Sep 2022
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 20:08, 6. Sep 2022
Joined Apr 2015
Points:

User statistics:

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

Anybody?

Last seen on 06:13, 28. Aug 2023
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 20:08, 6. Sep 2022
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 06:13, 28. Aug 2023
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 20:08, 6. Sep 2022
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 06:13, 28. Aug 2023
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 05:29, 11. Jan 2024
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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