-
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Add Data Generation for Block Loot Tables #765
- Loading branch information
1 parent
ec2a7a8
commit 6cd7ec3
Showing
46 changed files
with
1,246 additions
and
1,203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
shared/src/generated/resources/assets/waystones/models/item/warp_plate.json
This file was deleted.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
shared/src/generated/resources/data/waystones/loot_tables/blocks/black_sharestone.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"block": "waystones:black_sharestone", | ||
"condition": "minecraft:block_state_property", | ||
"properties": { | ||
"half": "lower" | ||
} | ||
}, | ||
{ | ||
"condition": "minecraft:survives_explosion" | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "waystones:black_sharestone" | ||
} | ||
], | ||
"functions": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:match_tool", | ||
"predicate": { | ||
"enchantments": [ | ||
{ | ||
"enchantment": "minecraft:silk_touch", | ||
"levels": { | ||
"min": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"function": "minecraft:copy_nbt", | ||
"ops": [ | ||
{ | ||
"op": "replace", | ||
"source": "UUID", | ||
"target": "UUID" | ||
} | ||
], | ||
"source": "block_entity" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
] | ||
} |
55 changes: 55 additions & 0 deletions
55
shared/src/generated/resources/data/waystones/loot_tables/blocks/blue_sharestone.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"block": "waystones:blue_sharestone", | ||
"condition": "minecraft:block_state_property", | ||
"properties": { | ||
"half": "lower" | ||
} | ||
}, | ||
{ | ||
"condition": "minecraft:survives_explosion" | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "waystones:blue_sharestone" | ||
} | ||
], | ||
"functions": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:match_tool", | ||
"predicate": { | ||
"enchantments": [ | ||
{ | ||
"enchantment": "minecraft:silk_touch", | ||
"levels": { | ||
"min": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"function": "minecraft:copy_nbt", | ||
"ops": [ | ||
{ | ||
"op": "replace", | ||
"source": "UUID", | ||
"target": "UUID" | ||
} | ||
], | ||
"source": "block_entity" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
] | ||
} |
55 changes: 55 additions & 0 deletions
55
shared/src/generated/resources/data/waystones/loot_tables/blocks/brown_sharestone.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"block": "waystones:brown_sharestone", | ||
"condition": "minecraft:block_state_property", | ||
"properties": { | ||
"half": "lower" | ||
} | ||
}, | ||
{ | ||
"condition": "minecraft:survives_explosion" | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "waystones:brown_sharestone" | ||
} | ||
], | ||
"functions": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:match_tool", | ||
"predicate": { | ||
"enchantments": [ | ||
{ | ||
"enchantment": "minecraft:silk_touch", | ||
"levels": { | ||
"min": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"function": "minecraft:copy_nbt", | ||
"ops": [ | ||
{ | ||
"op": "replace", | ||
"source": "UUID", | ||
"target": "UUID" | ||
} | ||
], | ||
"source": "block_entity" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
] | ||
} |
55 changes: 55 additions & 0 deletions
55
shared/src/generated/resources/data/waystones/loot_tables/blocks/cyan_sharestone.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"block": "waystones:cyan_sharestone", | ||
"condition": "minecraft:block_state_property", | ||
"properties": { | ||
"half": "lower" | ||
} | ||
}, | ||
{ | ||
"condition": "minecraft:survives_explosion" | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "waystones:cyan_sharestone" | ||
} | ||
], | ||
"functions": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:match_tool", | ||
"predicate": { | ||
"enchantments": [ | ||
{ | ||
"enchantment": "minecraft:silk_touch", | ||
"levels": { | ||
"min": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"function": "minecraft:copy_nbt", | ||
"ops": [ | ||
{ | ||
"op": "replace", | ||
"source": "UUID", | ||
"target": "UUID" | ||
} | ||
], | ||
"source": "block_entity" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
] | ||
} |
55 changes: 55 additions & 0 deletions
55
shared/src/generated/resources/data/waystones/loot_tables/blocks/gray_sharestone.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"block": "waystones:gray_sharestone", | ||
"condition": "minecraft:block_state_property", | ||
"properties": { | ||
"half": "lower" | ||
} | ||
}, | ||
{ | ||
"condition": "minecraft:survives_explosion" | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "waystones:gray_sharestone" | ||
} | ||
], | ||
"functions": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:match_tool", | ||
"predicate": { | ||
"enchantments": [ | ||
{ | ||
"enchantment": "minecraft:silk_touch", | ||
"levels": { | ||
"min": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"function": "minecraft:copy_nbt", | ||
"ops": [ | ||
{ | ||
"op": "replace", | ||
"source": "UUID", | ||
"target": "UUID" | ||
} | ||
], | ||
"source": "block_entity" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
] | ||
} |
Oops, something went wrong.