Added weird rocks

This commit is contained in:
Sollace 2021-09-03 00:02:34 +02:00
parent bb0405917f
commit 77aeaabf78
5 changed files with 25 additions and 0 deletions

View file

@ -70,6 +70,7 @@ public interface UItems {
Item PEBBLES = register("pebbles", new RacePredicatedAliasedBlockItem(UBlocks.ROCKS, new Item.Settings().group(ItemGroup.MATERIALS), Race::canUseEarth));
Item ROCK = register("rock", new Item(new Item.Settings().group(ItemGroup.MATERIALS)));
Item WEIRD_ROCK = register("weird_rock", new Item(new Item.Settings().group(ItemGroup.MATERIALS)));
Item ROCK_STEW = register("rock_stew", new Item(new Item.Settings().group(ItemGroup.FOOD).food(FoodComponents.MUSHROOM_STEW)));
Item MUG = register("mug", new Item(new Settings().group(ItemGroup.MATERIALS).maxCount(16)));

View file

@ -50,6 +50,7 @@
"item.unicopia.pebbles": "Pebbles",
"item.unicopia.rock": "Rock",
"item.unicopia.weird_rock": "Weird Rock",
"item.unicopia.rock_stew": "Rock Stew",
"item.unicopia.daffodil_daisy_sandwich": "Daffodil Daisy Sandwich",

View file

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View file

@ -8,6 +8,23 @@
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:block_state_property",
"block": "unicopia:rocks",
"properties": {
"age": "7"
}
},
{
"condition": "minecraft:random_chance",
"chance": 0.25
}
],
"name": "unicopia:weird_rock"
},
{
"type": "minecraft:item",
"conditions": [