Valmar Posted August 1, 2015 Share Posted August 1, 2015 This is a trap you can place to capture animals. The chicken coop will give you two options. You can either wait for it to spawn a chicken nest that you can loot for eggs and feathers or you can destroy the coop before it gets the nest to kill the chicken and get some meat. I also include an optional recipe book if you want to have it gated. If you have questions or discover any problems please let me know. This code can just be added to the items.xml: http://pastebin.com/Vhur9HDn Blocks.xml http://pastebin.com/ksVAaQga Recipes.xml http://pastebin.com/705qf9gV Loot.xml (NOTE: You'll want to put this near the bottom of your loot.xml. If you place this above the file's rabbit+hide or pig+hide loot groups then it will not work.) http://pastebin.com/pUZVfks7 Materials.xml <!--Animal Snare--> <material id="snare"> <property name="Hardness" type="float" value="0.2" /> <property name="explosionresistance" value="0" /> <property name="stepsound" value="cloth" /> <property name="lightopacity" value="4" /> <property name="stability_glue" value="2" /> <property name="Mass" type="int" value="1" /> <property name="StabilitySupport" value="false" /> </material> <!--Animal Snare END --> Custom Icons: https://www.mediafire.com/folder/l7mv8oa4mk77o/Icons Optional: Recipe Book Items.xml <item id="2015" name="recipebookAnimalTraps"> <property name="DescriptionKey" value="recipebookAnimalTrapsDesc"/> <property name="Extends" value="schematicMaster" /> <property class="Action1"> <property name="Recipes_to_learn" value="animalSnare,chickenCoop" /> </property> </item> Loot.xml add this line to either your rareBooks or commonBooks lootgroup, according to which one you want it classed as. <item name="recipebookAnimalTraps"/> Optional 2: Add this to your localization text file in the config folder. Localization: recipebookAnimalTrapsDesc,items,Item Book,,This book teaches you how to make animal snares and chicken coops.,, chickenCoop,blocks,Traps,,Chicken Coop,, chickenCoopDesc,blocks,Traps,,Place this outside and wait for it attract a chicken to build a nest or destroy the block to kill the attracted chicken to get meat.,, animalSnare,blocks,Traps,,Animal Snare,, animalSnareDesc,blocks,Traps,,Place this outside and wait for it to spring up and catch an animal.,, Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.