-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Unique Item: The Potion Horn (#70)
- Loading branch information
Showing
22 changed files
with
719 additions
and
10 deletions.
There are no files selected for viewing
238 changes: 238 additions & 0 deletions
238
datapacks/ocw-stuff/data/minecraft/loot_tables/chests/pillager_outpost.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,238 @@ | ||
{ | ||
"type": "minecraft:chest", | ||
"pools": [ | ||
{ | ||
"rolls": { | ||
"type": "minecraft:uniform", | ||
"min": 0, | ||
"max": 1 | ||
}, | ||
"bonus_rolls": 0, | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "minecraft:crossbow" | ||
} | ||
] | ||
}, | ||
{ | ||
"rolls": { | ||
"type": "minecraft:uniform", | ||
"min": 2, | ||
"max": 3 | ||
}, | ||
"bonus_rolls": 0, | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"weight": 7, | ||
"name": "minecraft:wheat", | ||
"functions": [ | ||
{ | ||
"function": "minecraft:set_count", | ||
"count": { | ||
"type": "minecraft:uniform", | ||
"min": 3, | ||
"max": 5 | ||
}, | ||
"add": false | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "minecraft:item", | ||
"weight": 5, | ||
"name": "minecraft:potato", | ||
"functions": [ | ||
{ | ||
"function": "minecraft:set_count", | ||
"count": { | ||
"type": "minecraft:uniform", | ||
"min": 2, | ||
"max": 5 | ||
}, | ||
"add": false | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "minecraft:item", | ||
"weight": 5, | ||
"name": "minecraft:carrot", | ||
"functions": [ | ||
{ | ||
"function": "minecraft:set_count", | ||
"count": { | ||
"type": "minecraft:uniform", | ||
"min": 3, | ||
"max": 5 | ||
}, | ||
"add": false | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"rolls": { | ||
"type": "minecraft:uniform", | ||
"min": 1, | ||
"max": 3 | ||
}, | ||
"bonus_rolls": 0, | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "minecraft:dark_oak_log", | ||
"functions": [ | ||
{ | ||
"function": "minecraft:set_count", | ||
"count": { | ||
"type": "minecraft:uniform", | ||
"min": 2, | ||
"max": 3 | ||
}, | ||
"add": false | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"rolls": { | ||
"type": "minecraft:uniform", | ||
"min": 2, | ||
"max": 3 | ||
}, | ||
"bonus_rolls": 0, | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"weight": 7, | ||
"name": "minecraft:experience_bottle" | ||
}, | ||
{ | ||
"type": "minecraft:item", | ||
"weight": 4, | ||
"name": "minecraft:string", | ||
"functions": [ | ||
{ | ||
"function": "minecraft:set_count", | ||
"count": { | ||
"type": "minecraft:uniform", | ||
"min": 1, | ||
"max": 6 | ||
}, | ||
"add": false | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "minecraft:item", | ||
"weight": 4, | ||
"name": "minecraft:arrow", | ||
"functions": [ | ||
{ | ||
"function": "minecraft:set_count", | ||
"count": { | ||
"type": "minecraft:uniform", | ||
"min": 2, | ||
"max": 7 | ||
}, | ||
"add": false | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "minecraft:item", | ||
"weight": 3, | ||
"name": "minecraft:tripwire_hook", | ||
"functions": [ | ||
{ | ||
"function": "minecraft:set_count", | ||
"count": { | ||
"type": "minecraft:uniform", | ||
"min": 1, | ||
"max": 3 | ||
}, | ||
"add": false | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "minecraft:item", | ||
"weight": 3, | ||
"name": "minecraft:iron_ingot", | ||
"functions": [ | ||
{ | ||
"function": "minecraft:set_count", | ||
"count": { | ||
"type": "minecraft:uniform", | ||
"min": 1, | ||
"max": 3 | ||
}, | ||
"add": false | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "minecraft:item", | ||
"name": "minecraft:book", | ||
"functions": [ | ||
{ | ||
"function": "minecraft:enchant_randomly" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"rolls": 1, | ||
"entries": [ | ||
{ | ||
"type": "minecraft:alternatives", | ||
"children": [ | ||
{ | ||
"type": "minecraft:loot_table", | ||
"name": "nincodedo:uniqueitems/potionhorn", | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:value_check", | ||
"value": { | ||
"type": "minecraft:score", | ||
"target": { | ||
"type": "minecraft:fixed", | ||
"name": "potionhorn" | ||
}, | ||
"score": "rhcdata" | ||
}, | ||
"range": 0 | ||
}, | ||
{ | ||
"condition": "minecraft:random_chance", | ||
"chance": 0.1 | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "minecraft:item", | ||
"name": "minecraft:goat_horn", | ||
"functions": [ | ||
{ | ||
"function": "minecraft:set_instrument", | ||
"options": "#minecraft:regular_goat_horns" | ||
} | ||
], | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:random_chance", | ||
"chance": 0.5 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
1 change: 0 additions & 1 deletion
1
datapacks/ocw-stuff/data/nincodedo/advancements/unique_items/master_sword/any.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
20 changes: 20 additions & 0 deletions
20
datapacks/ocw-stuff/data/nincodedo/advancements/unique_items/other_places.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,20 @@ | ||
{ | ||
"display": { | ||
"icon": { | ||
"item": "minecraft:player_head", | ||
"nbt": "{SkullOwner:{Id:[I;682268746,544686284,-1914182079,-1376598889],Properties:{textures:[{Value:\"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDZiYTYzMzQ0ZjQ5ZGQxYzRmNTQ4OGU5MjZiZjNkOWUyYjI5OTE2YTZjNTBkNjEwYmI0MGE1MjczZGM4YzgyIn19fQ==\"}]}}}" | ||
}, | ||
"title": "Other Places and Powers", | ||
"description": "Some structures have unknown origins but contain powerful items none the less", | ||
"frame": "task", | ||
"show_toast": false, | ||
"announce_to_chat": false, | ||
"hidden": false | ||
}, | ||
"parent": "nincodedo:unique_items/root", | ||
"criteria": { | ||
"other_stuff": { | ||
"trigger": "minecraft:impossible" | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
datapacks/ocw-stuff/data/nincodedo/advancements/unique_items/potion_horn/any.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,23 @@ | ||
{ | ||
"parent": "nincodedo:unique_items/potion_horn/initial", | ||
"criteria": { | ||
"get_potion_horn": { | ||
"trigger": "minecraft:inventory_changed", | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"nbt": "{NinUnique:\"PS\"}" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"get_potion_horn" | ||
] | ||
], | ||
"rewards": { | ||
"function": "nincodedo:uniqueitems/potionhorn" | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
datapacks/ocw-stuff/data/nincodedo/advancements/unique_items/potion_horn/initial.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,30 @@ | ||
{ | ||
"display": { | ||
"icon": { | ||
"item": "minecraft:player_head", | ||
"nbt": "{SkullOwner: {Id: [I; -1821251562, -110607629, -1745842003, -154273168], Properties: {textures: [{Value: \"ewogICJ0aW1lc3RhbXAiIDogMTY3OTYyNzIzMzc4NiwKICAicHJvZmlsZUlkIiA6ICI5MzcxZTgxNmY5Njg0MmYzOTdmMDkwYWRmNmNkZmE3MCIsCiAgInByb2ZpbGVOYW1lIiA6ICJTaG9ra1oiLAogICJzaWduYXR1cmVSZXF1aXJlZCIgOiB0cnVlLAogICJ0ZXh0dXJlcyIgOiB7CiAgICAiU0tJTiIgOiB7CiAgICAgICJ1cmwiIDogImh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzAzZTU0YzAxOGY1N2RlODBiYjZiYjdmMWM4Y2ZmYWIzZGI1ZTZkY2RiOTkxNDQxYTY1NzAwOGE0MDYxMDc4MSIKICAgIH0KICB9Cn0=\", Signature: \"MnBwLE1GJzczaMhTmEbpArfGXcANUSMdOOrZJKealRwnnfAaxR+GzmHTobEXJnDTkklSIvzl/4aphlIPJcR+SgmfJJkXwB+p0mes8frTevW4AzjE82Fg2b1atP0DD4QBwrIxqy/2fDJefs9k1SMC2EMrAFkxCw/Np5HufAgT9+TvPZSAgKW5ZAXPj563cIIxhESQqUs7ulGMy0I+UvnHxFfkVLU+ryZNIVBrcd/tttgtltEwSYVacvvrvirRgaI81M6JmtOqi3y/+ErFeBTzbbPAq44QTJ3Z0jlDVQ17teiJKVhiBpuvLnRNNx8UkHQmrkRWzvbH3CSkJPra16AnymznZ0sWWQ5b2dQaLBpnF/2mlhKHELq76C0owaPG2bMAWEFkpvfZJyocAbGglapsY1LRo3GAbSKtMbPFvUpOro5CyiZ5fc427YPtceZf5o7E8R8ZJG1jeE3U4vRnSXMvxLerKTX7FI1qSTbgyj4xKfdEciPIEmpLzrgp8EgzSt2i6BL+ZLwlRLwYPD/0scRvHBvGyJzctzLIDZcxvL7BIEcsVxn/oK6HvoLGNPXKCAi4x25h1scNo/GFowVh8lg8QnS+ssVcDwFulf/lTng4O5HXMjKUABVPBVxHFSSx1NgnmpTPZ4Nv5ptI0wtlgtyk0ySNTS/++1Js362RU977kFY=\"}]}, Name: \"ShokkZ\"}}" | ||
}, | ||
"title": "Do you like potions? And horns?", | ||
"description": "Where would ShokkZ go...?", | ||
"frame": "task", | ||
"show_toast": false, | ||
"announce_to_chat": false, | ||
"hidden": false | ||
}, | ||
"parent": "nincodedo:unique_items/other_places", | ||
"criteria": { | ||
"got_root": { | ||
"trigger": "minecraft:location", | ||
"conditions": { | ||
"player": [ | ||
{ | ||
"condition": "minecraft:location_check", | ||
"predicate": { | ||
"structure": "minecraft:pillager_outpost" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
datapacks/ocw-stuff/data/nincodedo/advancements/unique_items/potion_horn/main.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,35 @@ | ||
{ | ||
"display": { | ||
"icon": { | ||
"item": "minecraft:player_head", | ||
"nbt": "{SkullOwner: {Id: [I; -1821251562, -110607629, -1745842003, -154273168], Properties: {textures: [{Value: \"ewogICJ0aW1lc3RhbXAiIDogMTY3OTYyNzIzMzc4NiwKICAicHJvZmlsZUlkIiA6ICI5MzcxZTgxNmY5Njg0MmYzOTdmMDkwYWRmNmNkZmE3MCIsCiAgInByb2ZpbGVOYW1lIiA6ICJTaG9ra1oiLAogICJzaWduYXR1cmVSZXF1aXJlZCIgOiB0cnVlLAogICJ0ZXh0dXJlcyIgOiB7CiAgICAiU0tJTiIgOiB7CiAgICAgICJ1cmwiIDogImh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzAzZTU0YzAxOGY1N2RlODBiYjZiYjdmMWM4Y2ZmYWIzZGI1ZTZkY2RiOTkxNDQxYTY1NzAwOGE0MDYxMDc4MSIKICAgIH0KICB9Cn0=\", Signature: \"MnBwLE1GJzczaMhTmEbpArfGXcANUSMdOOrZJKealRwnnfAaxR+GzmHTobEXJnDTkklSIvzl/4aphlIPJcR+SgmfJJkXwB+p0mes8frTevW4AzjE82Fg2b1atP0DD4QBwrIxqy/2fDJefs9k1SMC2EMrAFkxCw/Np5HufAgT9+TvPZSAgKW5ZAXPj563cIIxhESQqUs7ulGMy0I+UvnHxFfkVLU+ryZNIVBrcd/tttgtltEwSYVacvvrvirRgaI81M6JmtOqi3y/+ErFeBTzbbPAq44QTJ3Z0jlDVQ17teiJKVhiBpuvLnRNNx8UkHQmrkRWzvbH3CSkJPra16AnymznZ0sWWQ5b2dQaLBpnF/2mlhKHELq76C0owaPG2bMAWEFkpvfZJyocAbGglapsY1LRo3GAbSKtMbPFvUpOro5CyiZ5fc427YPtceZf5o7E8R8ZJG1jeE3U4vRnSXMvxLerKTX7FI1qSTbgyj4xKfdEciPIEmpLzrgp8EgzSt2i6BL+ZLwlRLwYPD/0scRvHBvGyJzctzLIDZcxvL7BIEcsVxn/oK6HvoLGNPXKCAi4x25h1scNo/GFowVh8lg8QnS+ssVcDwFulf/lTng4O5HXMjKUABVPBVxHFSSx1NgnmpTPZ4Nv5ptI0wtlgtyk0ySNTS/++1Js362RU977kFY=\"}]}, Name: \"ShokkZ\"}}" | ||
}, | ||
"title": "The Potion Horn", | ||
"description": "Toot your potions to friends", | ||
"frame": "challenge", | ||
"show_toast": true, | ||
"announce_to_chat": true, | ||
"hidden": true | ||
}, | ||
"parent": "nincodedo:unique_items/potion_horn/initial", | ||
"criteria": { | ||
"get_potion_horn": { | ||
"trigger": "minecraft:inventory_changed", | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"nbt": "{NinUnique:\"PS\"}" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"get_potion_horn" | ||
] | ||
], | ||
"rewards": { | ||
"function": "nincodedo:advancements/getpotionhorn" | ||
} | ||
} |
Oops, something went wrong.