Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Chicken breeding changes stemming from discussion on #1910. These have been tested on US captains for the past few weeks.
Status
Description
ChickenCommon.as
Steps to Test or Reproduce
Chickens no longer use a global variable for sound or egg laying, which led to chickens being unable to breed or make sounds if any chicken was making noise
-Set up a chicken coop on one side of the map. Collide repeatedly with a different chicken ~20 blocks away (to make sure there is no overlap). Chickens in coop can still make
Pluck
sound and will continue to lay eggs.Chickens now always breed even if there isn't a player nearby
Chickens and eggs now ignore other chickens/eggs that are held or in inventories when counting nearby chickens/eggs
Eggs now prevent hatched chickens from clipping into walls
Eggs will not hatch a chicken inside of a static blob
Eggs will not hatch a chicken in a 1-wide gap
Eggs now reset their hatch time when detached
Eggs no longer tick when held
Eggs now always hatch even if they can't spawn a chicken
Reduced egg hatch time to 20 seconds
Reduced chicken/egg search radius to 10 blocks
Chickens will not lay eggs if there are 3 other chickens/eggs nearby
Eggs will not spawn a chicken when hatching if there are 4 chickens nearby
If you added new features and want to explain how to use them, do so here.
Chicken coop:
Simple chicken breeder set up:
Some useful information to include:
Follow-Up Recommended Changes:
RegrowPlants.as
from spawning chickens, flowers, and grain. Random full healing or chickens isn't great for competitive gameplay