Minecraft Data Packs / Other

Chickens randomly shed feathers

  • check_circle Functions
  • 7,261 views, 1 today
  • 1,001 downloads, 0 today
  • 23
  • 20
  • 16
MaximusArg1982's Avatar MaximusArg1982
Level 33 : Artisan Modder
4
IRL birds shed their feathers to replace them with new ones all the time, so why not in minecraft?

This datapack enables you to get feathers in a survival friendly, no cheats, no mods way without killing chickens.
I tested it on Vanilla versions release 1.14.4 and snapshot 19w36a.

How the pack works?
  • Chickens will drop a feather (spawn item with id minecraft:feather) at a random interval between 6000 to 12000 ticks (similar interval as vanilla eggs according to wiki, but with separated "timer").
  • Only works for vanilla minecraft:chicken entity, if you have a mod that spawns a different chicken entity, it will not be affected.
  • As with eggs, only adult chickens will shed feathers
  • Contrary to eggs case, jockey chickens do shed feathers
  • Interval is kind of configurable, either by modifying the constants in the init.mcfunction, or by changing the RNG's max value (see note below).
  • Allows tagging a/any/all chicken as ignored to prevent feather shedding, to do this add the tag "crfs_disable" to the desired chicken/s
Future versions ideas/improvements I intend to implement
  • Own control variables for RNG, currently there's a limitation from the RNG pack that uses a global RNG MaxValue variable, the pack overwrittes this variable and if the player do the same it affects this pack's functionality.
  • Make it so the chickens shed randomly 1 or 2 feathers instead of always 1
  • Add triggers to allow players to customize how it works (allow chicks to shed, jockeys, interval min/max, disable globally, playsound, etc)
  • Spawn the feather with motion tag so it will move away from the chicken just like eggs do.

Important Note:
This pack depends on the pseudo random number generator published by github user mcskware (link below)
If you don't install this RNG datapack the chickens will shed feathers at a fixed interval. The minimum (6000 default) ticks.

Credits and mentions
  mcskware github user for the prng datapack (https://github.com/mcskware/prng)
  voodobeard's pack (http://mc.voodoobeard.com/) for inspiration. Their pack don't spawn feathers, but replaces arbitrary vanilla spawned eggs
CompatibilityMinecraft 1.14
Tags

Create an account or sign in to comment.

Scarox93
05/14/2020 7:22 pm
Level 1 : New Network
Scarox93's Avatar
Does it replace the eggs? This is what it seems to do by the photo?
1
MaximusArg1982
07/22/2020 7:18 am
Level 33 : Artisan Modder
MaximusArg1982's Avatar
No. It's a separate drop counter
1
XanderSomething
12/31/2019 3:04 am
Level 3 : Apprentice Explorer
XanderSomething's Avatar
really nice datapack, is this compatible with 1.15 though?
1
MaximusArg1982
01/09/2020 11:50 am
Level 33 : Artisan Modder
MaximusArg1982's Avatar
Should be. Tested it up to snapshot 19w36a
Didn't have any time to play when 1.15 release
1
Luis_Ur
10/08/2019 7:26 pm
Level 12 : Journeyman Miner
Luis_Ur's Avatar
Props on a good data pack, I really enjoy this one as it makes chickens more useful without having to use the automatic cooker where I honestly don't know what to do with all that meat, lol. How hard would it be to adjust/expand to parrots which along with feathers could drop melon seeds (or other random seeds) maybe? Or Phantoms dropping membranes (sloughed skin)? and Bats dropping gun powder (my logic being bat guano)?
2
MaximusArg1982
10/15/2019 3:55 pm
Level 33 : Artisan Modder
history
MaximusArg1982's Avatar
Once I get some time off work I will update this mod to include a better random generator. I will take your suggestions into account then.

I don't mind adding the parrots feathers and seeds, but phantoms membrane and bats straight forwardly dropping gunpower? I think that would be too broken...
The closest I think would be "realistic" is to make bats drop rotten flesh, since it's the closest thing to guano :), or also seeds, since that is included in the guano when they feed off fruits :P

I might make it modular in the same I made my other modpack though, so it would be really easy to add such things as plugins.
2
Luis_Ur
01/20/2020 10:02 am
Level 12 : Journeyman Miner
Luis_Ur's Avatar
Hand another idea pigs doing clay balls, I tried to code it myself but never got it to work, sadly don't know much about java coding and getting time to overcome the learning curve slowing me down. As another thought using loot tables to allow for variable drops, say a pig dropping clay balls or poisonous potatoes at the time out of the ticks could add flavor as well if you like the idea.
1
MaximusArg1982
01/24/2020 9:20 pm
Level 33 : Artisan Modder
history
MaximusArg1982's Avatar
Hi, sorry hadn't have any free time to work on the datapack (or play minecraft, even).
You don't need to learn java, just minecraft commands, the datapacks are just a collection of commands and config files, just like the ones on those seemingly inifinite command block arrays maps :)

Inside the zip you download is all the code, you just need to add the id of the pig, and id of the clay item if you like.


Loot tables are only for killing and destroying blocks; they don't use timers to drop things like this datapack does.
2
Luis_Ur
02/19/2020 2:31 pm
Level 12 : Journeyman Miner
Luis_Ur's Avatar
Took a bit, also had to change function/file naming but it was pretty easy as you eluded for doing a simple swap. Thanks :) my terracotta building is in your debt.
1
Luis_Ur
10/15/2019 5:28 pm
Level 12 : Journeyman Miner
Luis_Ur's Avatar
I understand, I do enjoy the concept of having mobs drop stuff and love to see it expanded to add more interest in mobs. I'll agree could get OP if it's too often, especially important drop loot. For other animals I was thinking Cows, Sheeps, Horses, etc could do flowers and grasses pertaining to the biomes. Wolves, Polar Bears, and other predators rotten meat easily. Which rotten meat could work for spiders and phantoms, just have it on a longer tick so it's maybe once a night if one is lucky. Again, really cool concept and logical for the chickens to drop feathers a much appreciated add on.
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome