Added butterfly as a food item

This commit is contained in:
Sollace 2021-08-23 15:37:44 +02:00
parent cd97867678
commit 46d18af8d6
6 changed files with 35 additions and 1 deletions

View file

@ -75,6 +75,7 @@ public interface UItems {
Item GOLDEN_WING = register("golden_wing", new Item(new Item.Settings().rarity(Rarity.UNCOMMON).group(ItemGroup.MATERIALS))); Item GOLDEN_WING = register("golden_wing", new Item(new Item.Settings().rarity(Rarity.UNCOMMON).group(ItemGroup.MATERIALS)));
Item BUTTERFLY_SPAWN_EGG = register("butterfly_spawn_egg", new SpawnEggItem(UEntities.BUTTERFLY, 0x222200, 0xaaeeff, new Item.Settings().group(ItemGroup.MISC))); Item BUTTERFLY_SPAWN_EGG = register("butterfly_spawn_egg", new SpawnEggItem(UEntities.BUTTERFLY, 0x222200, 0xaaeeff, new Item.Settings().group(ItemGroup.MISC)));
Item BUTTERFLY = register("butterfly", new Item(new Item.Settings().group(ItemGroup.FOOD).food(UFoodComponents.INSECTS)));
AmuletItem PEGASUS_AMULET = register("pegasus_amulet", new AmuletItem(new FabricItemSettings() AmuletItem PEGASUS_AMULET = register("pegasus_amulet", new AmuletItem(new FabricItemSettings()
.maxCount(1) .maxCount(1)

View file

@ -16,6 +16,7 @@
"item.unicopia.friendship_bracelet.glowing": "Glowing", "item.unicopia.friendship_bracelet.glowing": "Glowing",
"item.unicopia.butterfly_spawn_egg": "Butterfly Spawn Egg", "item.unicopia.butterfly_spawn_egg": "Butterfly Spawn Egg",
"item.unicopia.butterfly": "Butterfly",
"item.unicopia.green_apple": "Granny Smith Apple", "item.unicopia.green_apple": "Granny Smith Apple",
"item.unicopia.sweet_apple": "Sweet Apple Acres Apple", "item.unicopia.sweet_apple": "Sweet Apple Acres Apple",

View file

@ -0,0 +1,6 @@
{
"parent": "unicopia:item/mug",
"textures": {
"layer0": "unicopia:item/butterfly"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 559 B

View file

@ -0,0 +1,25 @@
{
"type": "minecraft:entity",
"pools": [
{
"rolls": 1,
"bonus_rolls": 0,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:looting_enchant",
"count": {
"type": "minecraft:uniform",
"min": 0.0,
"max": 1.0
}
}
],
"name": "unicopia:butterfly"
}
]
}
]
}

View file

@ -2,6 +2,7 @@
"replace": false, "replace": false,
"values": [ "values": [
"minecraft:spider_eye", "minecraft:spider_eye",
"unicopia:wheat_worms" "unicopia:wheat_worms",
"unicopia:butterfly"
] ]
} }