Skip to content

Commit

Permalink
Migrate Loot Tables for 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Gegy committed Jul 14, 2024
1 parent 5928e78 commit 3dd41b3
Show file tree
Hide file tree
Showing 39 changed files with 782 additions and 207 deletions.
6 changes: 4 additions & 2 deletions data/lt/loot_table/packages/antidote_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
}
},
{
"function": "set_nbt",
"tag": "{display:{Name:'{\"text\":\"Bucket of Milk except it was paid for!\",\"color\":\"white\",\"bold\":true,\"italic\":false}'}}"
"function": "set_components",
"components": {
"custom_name": "{\"text\":\"Bucket of Milk except it was paid for!\",\"color\":\"white\",\"bold\":true,\"italic\":false}"
}
}
]
}
Expand Down
7 changes: 5 additions & 2 deletions data/lt/loot_table/packages/boom_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@
}
},
{
"function": "set_nbt",
"tag": "{display:{Name:'{\"text\":\"Coconut Go Boom On Throw! - Got it?\",\"color\":\"red\",\"bold\":true,\"italic\":false}'},explosion_radius:0.6}"
"function": "set_components",
"components": {
"custom_name": "{\"text\":\"Coconut Go Boom On Throw! - Got it?\",\"color\":\"red\",\"bold\":true,\"italic\":false}",
"tropicraft:explosion_radius": 0.6
}
}
]
}
Expand Down
12 changes: 10 additions & 2 deletions data/lt/loot_table/packages/extreme_yeeter_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,16 @@
}
},
{
"function": "set_nbt",
"tag": "{display:{Name:'{\"text\":\"Teeter Yeeter\",\"color\":\"dark_green\",\"bold\":true,\"italic\":false}'},Damage:55,Enchantments:[{id:\"minecraft:knockback\",lvl:95s}]}"
"function": "set_components",
"components": {
"custom_name": "{\"text\":\"Teeter Yeeter\",\"color\":\"dark_green\",\"bold\":true,\"italic\":false}",
"damage": 55,
"enchantments": {
"levels": {
"knockback": 95
}
}
}
}
]
}
Expand Down
17 changes: 15 additions & 2 deletions data/lt/loot_table/packages/lightning_crossbow_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,21 @@
"count": {"min": 1, "max": 1}
},
{
"function": "set_nbt",
"tag": "{display:{Name:'{\"text\":\"Charged Lightning Crossbow\",\"color\":\"dark_green\",\"bold\":true,\"italic\":false}'},ChargedProjectiles:[{id:'ltminigames:lightning_arrow',Count:1b},{id:'ltminigames:lightning_arrow',Count:1b},{id:'ltminigames:lightning_arrow',Count:1b}],Charged:1b,Enchantments:[{id:\"minecraft:multishot\",lvl:1s}],Damage:464}"
"function": "set_components",
"components": {
"custom_name": "{\"text\":\"Charged Lightning Crossbow\",\"color\":\"dark_green\",\"bold\":true,\"italic\":false}",
"charged_projectiles": [
{"id": "ltminigames:lightning_arrow"},
{"id": "ltminigames:lightning_arrow"},
{"id": "ltminigames:lightning_arrow"}
],
"enchantments": {
"levels": {
"multishot": 1
}
},
"damage": 464
}
}
]
}
Expand Down
12 changes: 10 additions & 2 deletions data/lt/loot_table/packages/yeeter_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,16 @@
}
},
{
"function": "set_nbt",
"tag": "{display:{Name:'{\"text\":\"Teeter Yeeter\",\"color\":\"dark_green\",\"bold\":true,\"italic\":false}'},Damage:55,Enchantments:[{id:\"minecraft:knockback\",lvl:5s}]}"
"function": "set_components",
"components": {
"custom_name": "{\"text\":\"Teeter Yeeter\",\"color\":\"dark_green\",\"bold\":true,\"italic\":false}",
"damage": 55,
"enchantments": {
"levels": {
"knockback": 5
}
}
}
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion data/lt/loot_table/rng/1_100.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"count": 1
},
{
"function": "set_nbt",
"function": "set_custom_data",
"tag": "{DeleteMe:1b}"
}
]
Expand Down
2 changes: 1 addition & 1 deletion data/lt/loot_table/rng/1_12.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"count": 1
},
{
"function": "set_nbt",
"function": "set_custom_data",
"tag": "{DeleteMe:1b}"
}
]
Expand Down
2 changes: 1 addition & 1 deletion data/lt/loot_table/rng/1_19.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"count": 1
},
{
"function": "set_nbt",
"function": "set_custom_data",
"tag": "{DeleteMe:1b}"
}
]
Expand Down
2 changes: 1 addition & 1 deletion data/lt/loot_table/rng/1_2.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"count": 1
},
{
"function": "set_nbt",
"function": "set_custom_data",
"tag": "{DeleteMe:1b}"
}
]
Expand Down
2 changes: 1 addition & 1 deletion data/lt/loot_table/rng/1_21.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"count": 1
},
{
"function": "set_nbt",
"function": "set_custom_data",
"tag": "{DeleteMe:1b}"
}
]
Expand Down
2 changes: 1 addition & 1 deletion data/lt/loot_table/rng/1_3.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"count": 1
},
{
"function": "set_nbt",
"function": "set_custom_data",
"tag": "{DeleteMe:1b}"
}
]
Expand Down
2 changes: 1 addition & 1 deletion data/lt/loot_table/rng/1_4.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"count": 1
},
{
"function": "set_nbt",
"function": "set_custom_data",
"tag": "{DeleteMe:1b}"
}
]
Expand Down
2 changes: 1 addition & 1 deletion data/lt/loot_table/rng/1_5.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"count": 1
},
{
"function": "set_nbt",
"function": "set_custom_data",
"tag": "{DeleteMe:1b}"
}
]
Expand Down
30 changes: 23 additions & 7 deletions data/lt/loot_table/stt/tier_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"entries": [
{
"type": "minecraft:loot_table",
"name": "lt:stt/tier_1/arrows"
"value": "lt:stt/tier_1/arrows"
}
]
},
Expand All @@ -18,7 +18,7 @@
"entries": [
{
"type": "minecraft:loot_table",
"name": "lt:stt/tier_1/armor"
"value": "lt:stt/tier_1/armor"
}
]
},
Expand All @@ -30,7 +30,7 @@
"entries": [
{
"type": "minecraft:loot_table",
"name": "lt:stt/tier_1/weapons"
"value": "lt:stt/tier_1/weapons"
}
]
},
Expand All @@ -39,7 +39,7 @@
"entries": [
{
"type": "minecraft:loot_table",
"name": "lt:stt/tier_1/potions"
"value": "lt:stt/tier_1/potions"
}
]
},
Expand Down Expand Up @@ -98,8 +98,24 @@
"name": "minecraft:zombie_spawn_egg",
"functions": [
{
"function": "minecraft:set_nbt",
"tag": "{EntityTag:{Tags:[\"game.stt.placed_mob\"],ArmorItems:[{},{},{},{id:'minecraft:leather_helmet',Count:1b,tag:{Unbreakable:1b}}]},CanPlaceOn:[\"#ltextras:everything\"]}"
"function": "minecraft:set_components",
"components": {
"entity_data": {
"Tags": ["game.stt.placed_mob"],
"ArmorItems": [
{},
{},
{},
{
"id": "leather_helmet",
"components": {
"unbreakable": {}
}
}
]
},
"can_place_on": {}
}
},
{
"function": "minecraft:set_count",
Expand All @@ -113,4 +129,4 @@
]
}
]
}
}
14 changes: 7 additions & 7 deletions data/lt/loot_table/stt/tier_1/arrows.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
}
},
{
"function": "minecraft:set_nbt",
"tag": "{Potion:\"minecraft:swiftness\"}"
"function": "set_potion",
"id": "swiftness"
}
]
},
Expand All @@ -46,8 +46,8 @@
}
},
{
"function": "minecraft:set_nbt",
"tag": "{Potion:\"minecraft:slow_falling\"}"
"function": "set_potion",
"id": "slow_falling"
}
]
},
Expand All @@ -63,12 +63,12 @@
}
},
{
"function": "minecraft:set_nbt",
"tag": "{Potion:\"minecraft:leaping\"}"
"function": "set_potion",
"id": "leaping"
}
]
}
]
}
]
}
}
63 changes: 46 additions & 17 deletions data/lt/loot_table/stt/tier_1/potions.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"name": "minecraft:lingering_potion",
"functions": [
{
"function": "minecraft:set_nbt",
"tag": "{Potion:\"minecraft:long_strength\"}"
"function": "set_potion",
"id": "long_strength"
}
]
},
Expand All @@ -22,8 +22,8 @@
"name": "minecraft:lingering_potion",
"functions": [
{
"function": "minecraft:set_nbt",
"tag": "{Potion:\"minecraft:slowness\"}"
"function": "set_potion",
"id": "slowness"
}
]
},
Expand All @@ -32,8 +32,8 @@
"name": "minecraft:lingering_potion",
"functions": [
{
"function": "minecraft:set_nbt",
"tag": "{Potion:\"minecraft:turtle_master\"}"
"function": "set_potion",
"id": "turtle_master"
}
]
},
Expand All @@ -42,8 +42,8 @@
"name": "minecraft:lingering_potion",
"functions": [
{
"function": "minecraft:set_nbt",
"tag": "{Potion:\"minecraft:weakness\"}"
"function": "set_potion",
"id": "weakness"
}
]
},
Expand All @@ -52,8 +52,8 @@
"name": "minecraft:lingering_potion",
"functions": [
{
"function": "minecraft:set_nbt",
"tag": "{Potion:\"minecraft:swiftness\"}"
"function": "set_potion",
"id": "swiftness"
}
]
},
Expand All @@ -62,8 +62,8 @@
"name": "minecraft:lingering_potion",
"functions": [
{
"function": "minecraft:set_nbt",
"tag": "{Potion:\"minecraft:regeneration\"}"
"function": "set_potion",
"id": "regeneration"
}
]
},
Expand All @@ -72,8 +72,20 @@
"name": "minecraft:lingering_potion",
"functions": [
{
"function": "minecraft:set_nbt",
"tag": "{display:{Name:'{\"text\":\"Lingering Potion of Blindness\",\"italic\":false}'},CustomPotionEffects:[{Id:15,Amplifier:2b,Duration:60}],CustomPotionColor:266808}"
"function": "minecraft:set_components",
"components": {
"custom_name": "{\"text\":\"Lingering Potion of Blindness\",\"italic\":false}",
"potion_contents": {
"custom_effects": [
{
"id": "blindness",
"amplifier": 2,
"duration": 60
}
],
"custom_color": 266808
}
}
}
]
},
Expand All @@ -82,12 +94,29 @@
"name": "minecraft:lingering_potion",
"functions": [
{
"function": "minecraft:set_nbt",
"tag": "{display:{Name:'{\"text\":\"Lingering Potion of Levitation\",\"italic\":false}'},CustomPotionEffects:[{Id:25,Amplifier:1b,Duration:40},{Id:28,Amplifier:0b,Duration:100}],CustomPotionColor:13949245}"
"function": "minecraft:set_components",
"components": {
"custom_name": "{\"text\":\"Lingering Potion of Levitation\",\"italic\":false}",
"potion_contents": {
"custom_effects": [
{
"id": "levitation",
"amplifier": 1,
"duration": 40
},
{
"id": "slow_falling",
"amplifier": 0,
"duration": 100
}
],
"custom_color": 13949245
}
}
}
]
}
]
}
]
}
}
Loading

0 comments on commit 3dd41b3

Please sign in to comment.