Skip to content

Commit

Permalink
update update
Browse files Browse the repository at this point in the history
  • Loading branch information
Cromy233 committed Nov 9, 2024
1 parent b7a4808 commit 3fc0b4e
Show file tree
Hide file tree
Showing 12 changed files with 321 additions and 16 deletions.
104 changes: 104 additions & 0 deletions data/minecraft/loot_table/blocks/ancient_debris.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
},
{
"condition": "minecraft:random_chance_with_enchanted_bonus",
"enchanted_chance": 1.0,
"enchantment": "minecraft:silk_touch",
"unenchanted_chance": 0.90
}
],
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:ancient_debris"
}
],
"rolls": 1.0
},
{
"bonus_rolls": 0.0,
"entries": [
{
"functions": [
{
"function": "minecraft:set_count",
"count": {
"max": 4.0,
"min": 1.0
}
}
],
"type": "minecraft:item",
"name": "minecraft:charcoal",
"weight": 6
},
{
"functions": [
{
"function": "minecraft:set_count",
"count": {
"max": 2.0,
"min": 1.0
}
}
],
"type": "minecraft:item",
"name": "minecraft:raw_iron",
"weight": 10
},
{
"functions": [
{
"function": "minecraft:set_count",
"count": {
"max": 2.0,
"min": 1.0
}
}
],
"type": "minecraft:item",
"name": "minecraft:raw_copper",
"weight": 10
},
{
"functions": [
{
"function": "minecraft:set_count",
"count": {
"max": 2.0,
"min": 1.0
}
}
],
"type": "minecraft:item",
"name": "minecraft:raw_gold",
"weight": 8
},
{
"functions": [
{
"function": "minecraft:set_count",
"count": 1.0
}
],
"type": "minecraft:item",
"name": "minecraft:diamond",
"weight": 2
},
{
"type": "minecraft:empty",
"weight": 36
}
],
"rolls": 1.0
}
],
"random_sequence": "minecraft:blocks/ancient_debris"
}
61 changes: 61 additions & 0 deletions data/minecraft/loot_table/blocks/nether_quartz_ore.json
Original file line number Diff line number Diff line change
@@ -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": "minecraft:nether_quartz_ore"
},
{
"type": "minecraft:item",
"functions": [
{
"add": false,
"count": {
"type": "minecraft:uniform",
"max": 3.0,
"min": 1.0
},
"function": "minecraft:set_count"
},
{
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops",
"function": "minecraft:apply_bonus"
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "minecraft:quartz"
}
]
}
],
"rolls": 1.0
}
],
"random_sequence": "minecraft:blocks/nether_quartz_ore"
}
2 changes: 1 addition & 1 deletion data/minecraft/loot_table/chests/end_city_treasure.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
"levels": {
"type": "minecraft:uniform",
"max": 59.0,
"min": 20.0
"min": 30.0
},
"options": "#minecraft:on_random_loot"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,18 @@
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:enchant_randomly",
"function": "minecraft:enchant_with_levels",
"options": [
"minecraft:knockback",
"minecraft:punch",
"minecraft:smite",
"minecraft:looting",
"minecraft:multishot"
]
],
"levels": {
"max": 59.0,
"min": 39.0
}
}
],
"name": "minecraft:book",
Expand All @@ -163,7 +167,7 @@
{
"add": false,
"enchantments": {
"minecraft:wind_burst": 1.0
"minecraft:wind_burst": 2.0
},
"function": "minecraft:set_enchantments"
}
Expand Down
6 changes: 6 additions & 0 deletions data/minecraft/loot_table/entities/blaze.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@
},
"enchantment": "minecraft:looting",
"function": "minecraft:enchanted_count_increase"
},
{
"function": "set_enchantments",
"enchantments": {
"minecraft:fire_aspect": 1
}
}
],
"name": "minecraft:blaze_rod"
Expand Down
29 changes: 29 additions & 0 deletions data/minecraft/loot_table/entities/cow.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,35 @@
}
],
"rolls": 1.0
},
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:random_chance_with_enchanted_bonus",
"enchanted_chance": {
"type": "minecraft:linear",
"base": 0.016,
"per_level_above_first": 0.002
},
"enchantment": "minecraft:fortune",
"unenchanted_chance": 0.015
}
],
"functions": [
{
"function": "minecraft:enchant_with_levels",
"levels": 1.0,
"options": "#in_enchanting_table"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:book"
}
],
"rolls": 1.0
}
],
"random_sequence": "minecraft:entities/cow"
Expand Down
94 changes: 94 additions & 0 deletions data/minecraft/loot_table/entities/slime.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"type": "minecraft:entity",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"type_specific": {
"type": "minecraft:slime",
"size": 1
}
}
}
],
"entries": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:inverted",
"term": {
"condition": "minecraft:damage_source_properties",
"predicate": {
"source_entity": {
"type": "minecraft:frog"
}
}
}
}
],
"functions": [
{
"add": false,
"count": {
"type": "minecraft:uniform",
"max": 2.0,
"min": 0.0
},
"function": "minecraft:set_count"
},
{
"count": {
"type": "minecraft:uniform",
"max": 1.0,
"min": 0.0
},
"enchantment": "minecraft:looting",
"function": "minecraft:enchanted_count_increase"
},
{
"function": "minecraft:set_enchantments",
"enchantments": {
"minecraft:knockback": 1
}
}
],
"name": "minecraft:slime_ball"
},
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:damage_source_properties",
"predicate": {
"source_entity": {
"type": "minecraft:frog"
}
}
}
],
"functions": [
{
"add": false,
"count": 1.0,
"function": "minecraft:set_count"
},
{
"function": "minecraft:set_enchantments",
"enchantments": {
"minecraft:knockback": 3
}
}
],
"name": "minecraft:slime_ball"
}
],
"rolls": 1.0
}
],
"random_sequence": "minecraft:entities/slime"
}
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"function": "minecraft:set_count"
}
],
"name": "minecraft:arrow"
"name": "minecraft:egg"
},
{
"type": "minecraft:item",
Expand Down
2 changes: 0 additions & 2 deletions data/sbcore/function/items.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ execute as @e[type=item,nbt={Item:{id:"minecraft:wheat_seeds"}}] run data merge
execute as @e[type=item,nbt={Item:{id:"minecraft:potato"}}] run data merge entity @s {Item:{id:"minecraft:cookie",components:{"minecraft:food":{nutrition:2,saturation:1,effects:[{effect:{id:"minecraft:regeneration",duration:200,amplifier:0}}]}}}}
execute as @e[type=item,nbt={Item:{id:"minecraft:cookie"}}] run data merge entity @s {Item:{id:"minecraft:cookie",components:{"minecraft:food":{nutrition:2,saturation:1,effects:[{effect:{id:"minecraft:regeneration",duration:200,amplifier:0}}]}}}}
execute as @e[type=item,nbt={Item:{id:"minecraft:glass_bottle"}}] run data merge entity @s {Item:{id:"minecraft:experience_bottle"}}
execute as @e[type=item,nbt={Item:{id:"minecraft:slime_ball"}}] run data merge entity @s {Item:{components:{"minecraft:enchantments":{"minecraft:knockback":3}}}}
execute as @e[type=item,nbt={Item:{id:"minecraft:chorus_fruit"}}] run data merge entity @s {Item:{components:{"minecraft:food":{eat_seconds:0.8,can_always_eat:1b,nutrition:2,saturation:0,effects:[{effect:{id:"minecraft:invisibility",duration:100,amplifier:9}}]}}}}
execute as @e[type=item,nbt={Item:{id:"minecraft:cactus"}}] run data merge entity @s {Item:{components:{"minecraft:food":{nutrition:3,saturation:7,effects:[{effect:{id:"minecraft:instant_damage",duration:1,amplifier:0}},{effect:{id:"minecraft:blindness",duration:20,amplifier:0}}]}}}}
execute as @e[type=item,nbt={Item:{id:"minecraft:spider_eye"}}] run data merge entity @s {Item:{components:{"minecraft:food":{eat_seconds:0.8,can_always_eat:1b,nutrition:2,saturation:3.5,effects:[{effect:{id:"minecraft:night_vision",duration:200,amplifier:0}},{effect:{id:"minecraft:poison",duration:100,amplifier:0}}]}}}}
Expand All @@ -24,7 +23,6 @@ execute as @e[type=item,nbt={Item:{id:"minecraft:glow_berries"}}] run data merge
execute as @e[type=item,nbt={Item:{id:"minecraft:dried_kelp"}}] run data merge entity @s {Item:{id:"minecraft:dried_kelp",components:{"minecraft:food":{nutrition:1,saturation:1,eat_seconds:0.4,effects:[{effect:{id:"minecraft:dolphins_grace",duration:100,amplifier:0}}]}}}}
execute as @e[type=item,nbt={Item:{id:"minecraft:melon_slice"}}] run data merge entity @s {Item:{id:"minecraft:melon_slice",components:{"minecraft:food":{nutrition:2,saturation:1.5,eat_seconds:0.8,effects:[{effect:{id:"minecraft:haste",duration:200,amplifier:0}}]}}}}
execute as @e[type=item,nbt={Item:{id:"minecraft:glistering_melon_slice"}}] run data merge entity @s {Item:{id:"minecraft:glistering_melon_slice",components:{"minecraft:food":{nutrition:2,saturation:2,effects:[{effect:{id:"minecraft:haste",duration:600,amplifier:0}}]}}}}
execute as @e[type=item,nbt={Item:{id:"minecraft:blaze_rod"}}] run data merge entity @s {Item:{id:"minecraft:blaze_rod",components:{enchantments:{"minecraft:fire_aspect":1}}}}

#盲盒
execute at @e[type=item,nbt={Item:{id:"minecraft:blaze_spawn_egg"}}] run summon minecraft:blaze ~ ~ ~
Expand Down
Loading

0 comments on commit 3fc0b4e

Please sign in to comment.