1
0
mirror of https://github.com/TechnoVisionDev/Forge-Modding-Tutorial-1.16 synced 2026-03-02 03:40:08 +00:00

Tidy up code & add ruby ore

This commit is contained in:
TechnoVisionDev
2020-07-11 21:16:19 -07:00
parent 286a12f142
commit 25ed35627a
10 changed files with 107 additions and 9 deletions

View File

@@ -0,0 +1,5 @@
{
"variants": {
"": { "model": "tutorial:block/ruby_ore" }
}
}

View File

@@ -2,6 +2,7 @@
"item.tutorial.ruby": "Ruby",
"item.tutorial.poison_apple": "Poison Apple",
"block.tutorial.ruby_block": "Block of Ruby",
"block.tutorial.ruby_ore": "Ruby Ore",
"itemGroup.tutorialTab": "Tutorial",
"item.tutorial.ruby_sword": "Ruby Sword",
"item.tutorial.ruby_pickaxe": "Ruby Pickaxe",

View File

@@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "tutorial:blocks/ruby_ore"
}
}

View File

@@ -0,0 +1,3 @@
{
"parent": "tutorial:block/ruby_ore"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 591 B

View File

@@ -0,0 +1,56 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
],
"name": "tutorial:ruby_ore"
},
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 1,
"max": 2,
"type": "minecraft:uniform"
}
},
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:uniform_bonus_count",
"parameters": {
"bonusMultiplier": 1
}
}
],
"name": "tutorial:ruby"
}
]
}
]
}
]
}