Skip to content

Commit

Permalink
Add Unique Item: The Potion Horn (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nincodedo authored Mar 24, 2023
1 parent 9ed7979 commit c2f516f
Show file tree
Hide file tree
Showing 22 changed files with 719 additions and 10 deletions.
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
}
]
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"parent": "nincodedo:unique_items/master_sword/initial",
"criteria": {
"get_mastersword": {
"trigger": "minecraft:inventory_changed",
Expand Down
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"
}
}
}
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"
}
}
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"
}
}
]
}
}
}
}
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"
}
}
Loading

0 comments on commit c2f516f

Please sign in to comment.