Bug Closed · Resolved

[Bug] Random Spawns REPLACE action entitytype not working for all mobs

#4124 opened by Unknown 3 years ago

Unknownreported this bug

Summary

Random Spawns by REPLACE action enables us to alter vanilla mob spawning beheviour. We intent to replace rabbit with camel spawns. To do this we use the entitytype condition.

Currently the entitytype condition is not working for certain mobs. To make testing easier we use the Reason: SPAWNER_EGG.

Steps to reproduce

  1. Reference configuration files.

Random spawn file: https://pastebin.com/U4P4AaZT

Mob file: https://pastebin.com/WuYSJQ3Z

  1. Try to spawn CAMEL via Skeleton or Zombie spawn egg. (in desert biome) -> working correctly

  2. Try to spawn CAMEL via Cow or Rabbit spawn egg. (in desert biome) -> not working

Current behavior

Currently the entitytype condition is not working for all entities.

Confirmed broken entities:

  • COW, SHEEP, PIG, CHICKEN, GOAT, RABBIT

Confirmed working entities:

  • SKELETON, ZOMBIE, CREEPER, SPIDER

Intended correct behavior

That the entitytype condition works for all entities.

Server log file

https://pastebin.com/C690tqJ5

Debug log snippet

https://pastebin.com/rzU1xJhx

Proposed fixes

It seems that only monsters are supported by the entitytype condition. Animal like mobs are not working.

Unknowncommented

I can confirm this issue was introduced in 5.2.0 - Rewrote Random Spawning system.

As build 5.0.2 does not have this issue.

Unknowncommented

This issue has not been fixed.

Sign in to join the discussion.