Skip to content

Commit

Permalink
Add turkey legs and turkey meat drop
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmeow committed Nov 24, 2019
1 parent 8f35993 commit ca9ec13
Show file tree
Hide file tree
Showing 8 changed files with 77 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ public static void registerRenders(final ModelRegistryEvent event) {
initModel(ModItems.BEAR_CAPE_KERMODE);
initModel(ModItems.PHEASANT_EGG);
initModel(ModItems.TURKEY_EGG);
initModel(ModItems.TURKEY_LEG_RAW);
initModel(ModItems.TURKEY_LEG_COOKED);

for(ItemAdvancementIcon icon : ModItems.ADVANCEMENT_ICONS.values()) {
initModel(icon);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ public static void registerItems(final RegistryEvent.Register<Item> event) {
ModItems.RECORD_CRAB_RAVE,
ModItems.PHEASANT_EGG,
ModItems.TURKEY_EGG,
ModItems.TURKEY_LEG_RAW,
ModItems.TURKEY_LEG_COOKED,
new ItemAdvancementIcon("advancement_icon_jellyfish"),
new ItemAdvancementIcon("advancement_icon_jellyfish_cross"),
new ItemAdvancementIcon("advancement_icon_goat"),
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/its_meow/betteranimalsplus/init/ModItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public class ModItems {
public static final ItemThrowableCustomEgg PHEASANT_EGG = new ItemThrowableCustomEgg("pheasant_egg", player -> new EntityPheasantEgg(player.world, player));
public static final ItemThrowableCustomEgg TURKEY_EGG = new ItemThrowableCustomEgg("turkey_egg", player -> new EntityTurkeyEgg(player.world, player));

public static final ItemBetterFood TURKEY_LEG_RAW = new ItemBetterFood("turkey_leg_raw", 3, 2, 16, true);
public static final ItemBetterFood TURKEY_LEG_COOKED = new ItemBetterFood("turkey_leg_cooked", 4, 1.2F, 16, true);

public static Map<String, ItemAdvancementIcon> ADVANCEMENT_ICONS = new HashMap<String, ItemAdvancementIcon>();

@ObjectHolder("turkey_raw")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public static final void register() {
GameRegistry.addSmelting(new ItemStack(ModItems.PHEASANT_RAW), new ItemStack(ModItems.PHEASANT_COOKED), 0.0F);
GameRegistry.addSmelting(new ItemStack(ModItems.CRAB_MEAT_RAW), new ItemStack(ModItems.CRAB_MEAT_COOKED), 0.0F);
GameRegistry.addSmelting(new ItemStack(ModItems.TURKEY_RAW), new ItemStack(ModItems.TURKEY_COOKED), 0.0F);
GameRegistry.addSmelting(new ItemStack(ModItems.TURKEY_LEG_RAW), new ItemStack(ModItems.TURKEY_LEG_COOKED), 0.0F);

// Register oredict
OreDictionary.registerOre("listAllmeatraw", ModItems.VENISON_RAW);
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/assets/betteranimalsplus/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ item.betteranimalsplus.bear_skin_black.name=Black Bear Skin
item.betteranimalsplus.bear_skin_kermode.name=Kermode Bear Skin
item.betteranimalsplus.pheasant_egg.name=Pheasant Egg
item.betteranimalsplus.turkey_egg.name=Turkey Egg
item.betteranimalsplus.turkey_leg_raw.name=Raw Turkey Leg
item.betteranimalsplus.turkey_leg_cooked.name=Cooked Turkey Leg
#Blocks
tile.betteranimalsplus.trillium.name=Trillium
tile.betteranimalsplus.hirschgeistskull.name=Hirschgeist Skull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,61 @@
]
}
]
},
{
"name": "turkey-meat",
"rolls": 1,
"entries": [
{
"type": "item",
"name": "betteranimalsplus:turkey_leg_raw",
"weight": 7,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
},
{
"function": "furnace_smelt",
"conditions": [
{
"condition": "entity_properties",
"entity": "this",
"properties": {
"on_fire": true
}
}
]
}
]
},
{
"type": "item",
"name": "betteranimalsplus:turkey_raw",
"weight": 1,
"functions": [
{
"function": "set_count",
"count": 1
},
{
"function": "furnace_smelt",
"conditions": [
{
"condition": "entity_properties",
"entity": "this",
"properties": {
"on_fire": true
}
}
]
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/handheld_rod",
"textures": {
"layer0": "betteranimalsplus:items/turkey_leg_cooked"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/handheld_rod",
"textures": {
"layer0": "betteranimalsplus:items/turkey_leg_raw"
}
}

0 comments on commit ca9ec13

Please sign in to comment.