mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Added weird rocks
This commit is contained in:
parent
bb0405917f
commit
77aeaabf78
5 changed files with 25 additions and 0 deletions
|
@ -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)));
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "item/generated",
|
||||
"textures": {
|
||||
"layer0": "unicopia:item/weird_rock"
|
||||
}
|
||||
}
|
BIN
src/main/resources/assets/unicopia/textures/item/weird_rock.png
Normal file
BIN
src/main/resources/assets/unicopia/textures/item/weird_rock.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
|
@ -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": [
|
||||
|
|
Loading…
Reference in a new issue