datagen step 2

This commit is contained in:
2024-12-30 14:56:45 -06:00
parent 1d45e22606
commit 189eb3ceeb
47 changed files with 1257 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_nugget_block": {
"conditions": {
"items": [
{
"items": "nuggetmod:nugget_block"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "nuggetmod:nugget"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_nugget_block"
]
],
"rewards": {
"recipes": [
"nuggetmod:nugget"
]
}
}

View File

@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_nugget": {
"conditions": {
"items": [
{
"items": "nuggetmod:nugget"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "nuggetmod:nugget_block"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_nugget"
]
],
"rewards": {
"recipes": [
"nuggetmod:nugget_block"
]
}
}

View File

@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_nugget_deepslate_ore": {
"conditions": {
"items": [
{
"items": "nuggetmod:nugget_deepslate_ore"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "nuggetmod:nugget_from_blasting_nugget_deepslate_ore"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_nugget_deepslate_ore"
]
],
"rewards": {
"recipes": [
"nuggetmod:nugget_from_blasting_nugget_deepslate_ore"
]
}
}

View File

@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_nugget_ore": {
"conditions": {
"items": [
{
"items": "nuggetmod:nugget_ore"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "nuggetmod:nugget_from_blasting_nugget_ore"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_nugget_ore"
]
],
"rewards": {
"recipes": [
"nuggetmod:nugget_from_blasting_nugget_ore"
]
}
}

View File

@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_raw_nugget": {
"conditions": {
"items": [
{
"items": "nuggetmod:raw_nugget"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "nuggetmod:nugget_from_blasting_raw_nugget"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_raw_nugget"
]
],
"rewards": {
"recipes": [
"nuggetmod:nugget_from_blasting_raw_nugget"
]
}
}

View File

@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_nugget_deepslate_ore": {
"conditions": {
"items": [
{
"items": "nuggetmod:nugget_deepslate_ore"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "nuggetmod:nugget_from_smelting_nugget_deepslate_ore"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_nugget_deepslate_ore"
]
],
"rewards": {
"recipes": [
"nuggetmod:nugget_from_smelting_nugget_deepslate_ore"
]
}
}

View File

@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_nugget_ore": {
"conditions": {
"items": [
{
"items": "nuggetmod:nugget_ore"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "nuggetmod:nugget_from_smelting_nugget_ore"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_nugget_ore"
]
],
"rewards": {
"recipes": [
"nuggetmod:nugget_from_smelting_nugget_ore"
]
}
}

View File

@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_raw_nugget": {
"conditions": {
"items": [
{
"items": "nuggetmod:raw_nugget"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "nuggetmod:nugget_from_smelting_raw_nugget"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_raw_nugget"
]
],
"rewards": {
"recipes": [
"nuggetmod:nugget_from_smelting_raw_nugget"
]
}
}

View File

@@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "nuggetmod:nugget_block"
}
],
"rolls": 1.0
}
],
"random_sequence": "nuggetmod:blocks/nugget_block"
}

View File

@@ -0,0 +1,61 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "nuggetmod:nugget_deepslate_ore"
},
{
"type": "minecraft:item",
"functions": [
{
"add": false,
"count": {
"type": "minecraft:uniform",
"max": 6.0,
"min": 2.0
},
"function": "minecraft:set_count"
},
{
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops",
"function": "minecraft:apply_bonus"
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "nuggetmod:raw_nugget"
}
]
}
],
"rolls": 1.0
}
],
"random_sequence": "nuggetmod:blocks/nugget_deepslate_ore"
}

View File

@@ -0,0 +1,52 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"minecraft:enchantments": [
{
"enchantments": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"name": "nuggetmod:nugget_ore"
},
{
"type": "minecraft:item",
"functions": [
{
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops",
"function": "minecraft:apply_bonus"
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "nuggetmod:raw_nugget"
}
]
}
],
"rolls": 1.0
}
],
"random_sequence": "nuggetmod:blocks/nugget_ore"
}

View File

@@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "nuggetmod:raw_nugget_block"
}
],
"rolls": 1.0
}
],
"random_sequence": "nuggetmod:blocks/raw_nugget_block"
}

View File

@@ -0,0 +1,13 @@
{
"type": "minecraft:crafting_shapeless",
"category": "misc",
"ingredients": [
{
"item": "nuggetmod:nugget_block"
}
],
"result": {
"count": 9,
"id": "nuggetmod:nugget"
}
}

View File

@@ -0,0 +1,18 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"key": {
"A": {
"item": "nuggetmod:nugget"
}
},
"pattern": [
"AAA",
"AAA",
"AAA"
],
"result": {
"count": 1,
"id": "nuggetmod:nugget_block"
}
}

View File

@@ -0,0 +1,13 @@
{
"type": "minecraft:blasting",
"category": "misc",
"cookingtime": 100,
"experience": 0.25,
"group": "nugget",
"ingredient": {
"item": "nuggetmod:nugget_deepslate_ore"
},
"result": {
"id": "nuggetmod:nugget"
}
}

View File

@@ -0,0 +1,13 @@
{
"type": "minecraft:blasting",
"category": "misc",
"cookingtime": 100,
"experience": 0.25,
"group": "nugget",
"ingredient": {
"item": "nuggetmod:nugget_ore"
},
"result": {
"id": "nuggetmod:nugget"
}
}

View File

@@ -0,0 +1,13 @@
{
"type": "minecraft:blasting",
"category": "misc",
"cookingtime": 100,
"experience": 0.25,
"group": "nugget",
"ingredient": {
"item": "nuggetmod:raw_nugget"
},
"result": {
"id": "nuggetmod:nugget"
}
}

View File

@@ -0,0 +1,13 @@
{
"type": "minecraft:smelting",
"category": "food",
"cookingtime": 200,
"experience": 0.25,
"group": "nugget",
"ingredient": {
"item": "nuggetmod:nugget_deepslate_ore"
},
"result": {
"id": "nuggetmod:nugget"
}
}

View File

@@ -0,0 +1,13 @@
{
"type": "minecraft:smelting",
"category": "food",
"cookingtime": 200,
"experience": 0.25,
"group": "nugget",
"ingredient": {
"item": "nuggetmod:nugget_ore"
},
"result": {
"id": "nuggetmod:nugget"
}
}

View File

@@ -0,0 +1,13 @@
{
"type": "minecraft:smelting",
"category": "food",
"cookingtime": 200,
"experience": 0.25,
"group": "nugget",
"ingredient": {
"item": "nuggetmod:raw_nugget"
},
"result": {
"id": "nuggetmod:nugget"
}
}

View File

@@ -0,0 +1,9 @@
{
"values": [
"nuggetmod:nugget",
"nuggetmod:raw_nugget",
"minecraft:coal",
"minecraft:stick",
"minecraft:compass"
]
}