diff --git a/data/minecraft/loot_table/blocks/ancient_debris.json b/data/minecraft/loot_table/blocks/ancient_debris.json new file mode 100644 index 0000000..4ad7d68 --- /dev/null +++ b/data/minecraft/loot_table/blocks/ancient_debris.json @@ -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" +} \ No newline at end of file diff --git a/data/minecraft/loot_table/blocks/nether_quartz_ore.json b/data/minecraft/loot_table/blocks/nether_quartz_ore.json new file mode 100644 index 0000000..245d723 --- /dev/null +++ b/data/minecraft/loot_table/blocks/nether_quartz_ore.json @@ -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" +} \ No newline at end of file diff --git a/data/minecraft/loot_table/chests/end_city_treasure.json b/data/minecraft/loot_table/chests/end_city_treasure.json index dfe5bb8..5851f18 100644 --- a/data/minecraft/loot_table/chests/end_city_treasure.json +++ b/data/minecraft/loot_table/chests/end_city_treasure.json @@ -157,7 +157,7 @@ "levels": { "type": "minecraft:uniform", "max": 59.0, - "min": 20.0 + "min": 30.0 }, "options": "#minecraft:on_random_loot" } diff --git a/data/minecraft/loot_table/chests/trial_chambers/reward_ominous_rare.json b/data/minecraft/loot_table/chests/trial_chambers/reward_ominous_rare.json index 8b6781d..8cf822c 100644 --- a/data/minecraft/loot_table/chests/trial_chambers/reward_ominous_rare.json +++ b/data/minecraft/loot_table/chests/trial_chambers/reward_ominous_rare.json @@ -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", @@ -163,7 +167,7 @@ { "add": false, "enchantments": { - "minecraft:wind_burst": 1.0 + "minecraft:wind_burst": 2.0 }, "function": "minecraft:set_enchantments" } diff --git a/data/minecraft/loot_table/entities/blaze.json b/data/minecraft/loot_table/entities/blaze.json index 1363b52..65298c9 100644 --- a/data/minecraft/loot_table/entities/blaze.json +++ b/data/minecraft/loot_table/entities/blaze.json @@ -59,6 +59,12 @@ }, "enchantment": "minecraft:looting", "function": "minecraft:enchanted_count_increase" + }, + { + "function": "set_enchantments", + "enchantments": { + "minecraft:fire_aspect": 1 + } } ], "name": "minecraft:blaze_rod" diff --git a/data/minecraft/loot_table/entities/cow.json b/data/minecraft/loot_table/entities/cow.json index 8b164aa..9c783c8 100644 --- a/data/minecraft/loot_table/entities/cow.json +++ b/data/minecraft/loot_table/entities/cow.json @@ -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" diff --git a/data/minecraft/loot_table/entities/slime.json b/data/minecraft/loot_table/entities/slime.json new file mode 100644 index 0000000..4a7064f --- /dev/null +++ b/data/minecraft/loot_table/entities/slime.json @@ -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" +} \ No newline at end of file diff --git a/data/minecraft/loot_table/spawners/trial_chamber/items_to_drop_when_ominous.json b/data/minecraft/loot_table/spawners/trial_chamber/items_to_drop_when_ominous.json index afb82f4..4416045 100644 --- a/data/minecraft/loot_table/spawners/trial_chamber/items_to_drop_when_ominous.json +++ b/data/minecraft/loot_table/spawners/trial_chamber/items_to_drop_when_ominous.json @@ -124,7 +124,7 @@ "function": "minecraft:set_count" } ], - "name": "minecraft:arrow" + "name": "minecraft:egg" }, { "type": "minecraft:item", diff --git a/data/sbcore/function/items.mcfunction b/data/sbcore/function/items.mcfunction index a5f076d..8b951fd 100644 --- a/data/sbcore/function/items.mcfunction +++ b/data/sbcore/function/items.mcfunction @@ -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}}]}}}} @@ -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 ~ ~ ~ diff --git a/data/sbcore/function/mobs.mcfunction b/data/sbcore/function/mobs.mcfunction index 2b45b94..cc491c2 100644 --- a/data/sbcore/function/mobs.mcfunction +++ b/data/sbcore/function/mobs.mcfunction @@ -114,6 +114,7 @@ execute at @e[type=minecraft:witch,tag=!sbcore] at @e[type=minecraft:iron_golem, #凋零骷髅 execute as @e[type=minecraft:wither_skeleton,tag=!sbcore] run data merge entity @s {Tags:["sbcore"],HandItems:[{id:"minecraft:netherite_sword"},{id:"minecraft:shield"}],HandDropChances:[0f,0f],ArmorItems:[{id:"minecraft:netherite_boots"},{id:"minecraft:netherite_leggings"},{id:"minecraft:netherite_chestplate"},{id:"minecraft:netherite_helmet"}],ArmorDropChances:[0f,0f,0f,0f],attributes:[{id:"generic.knockback_resistance",base:1},{id:"generic.movement_speed",base:0.15},{id:"generic.armor",base:30},{id:"generic.armor_toughness",base:20}]} + execute at @e[type=minecraft:wither_skeleton,tag=sbcore] at @e[type=minecraft:ender_pearl,distance=..3] run particle minecraft:sweep_attack ~ ~ ~ 0 0 0 1 1 force execute at @e[type=minecraft:wither_skeleton,tag=sbcore] at @e[type=minecraft:trident,distance=..3,nbt={inGround:0b}] run particle minecraft:sweep_attack ~ ~ ~ 0 0 0 1 1 force execute at @e[type=minecraft:wither_skeleton,tag=sbcore] at @e[type=minecraft:arrow,distance=..3] run particle minecraft:sweep_attack ~ ~ ~ 0 0 0 1 1 force @@ -165,21 +166,25 @@ execute at @e[type=minecraft:evoker,tag=!sbcore] run xp add @a[distance=..2.5,ga #旋风人 execute as @e[type=minecraft:breeze,tag=!sbcore] at @s if entity @e[distance=0.01..5,type=!minecraft:player,type=!minecraft:breeze_wind_charge,type=!minecraft:item,type=!minecraft:wind_charge,type=!minecraft:painting,type=!minecraft:wind_charge,type=!minecraft:item_frame,type=!minecraft:glow_item_frame,type=!minecraft:fireball] run ride @e[distance=0.01..5,type=!minecraft:player,limit=1,sort=nearest] mount @s execute as @e[type=minecraft:breeze,tag=!sbcore] at @s if entity @e[distance=0.01..5,type=!minecraft:player,type=!minecraft:breeze_wind_charge,type=!minecraft:item,type=!minecraft:wind_charge,type=!minecraft:painting,type=!minecraft:wind_charge,type=!minecraft:item_frame,type=!minecraft:glow_item_frame,type=!minecraft:fireball] run data merge entity @s {Tags:["sbcore"],attributes:[{id:"generic.gravity",base:0.2}]} +execute at @e[type=minecraft:breeze] run effect give @e[type=!minecraft:breeze,distance=..2.5] minecraft:slow_falling 1 0 true #疣猪兽 +execute as @a run attribute @s minecraft:generic.fall_damage_multiplier modifier remove hoglin_feather_falling + execute as @e[type=minecraft:hoglin,tag=!sbcore] run data merge entity @s {Tags:["sbcore"],attributes:[{id:"generic.attack_knockback",base:3},{id:"generic.attack_damage",base:5}]} -execute at @e[type=minecraft:hoglin,tag=sbcore] run effect give @e[type=!minecraft:hoglin,distance=..2.5,type=!minecraft:player] slow_falling 5 0 true -execute at @e[type=minecraft:hoglin,tag=sbcore] run effect give @a[distance=..2.5,gamemode=!spectator] slow_falling 5 0 true +execute at @e[type=minecraft:hoglin,tag=sbcore] as @a[distance=..5,gamemode=!spectator] run attribute @s minecraft:generic.fall_damage_multiplier modifier add hoglin_feather_falling -0.9 add_multiplied_base #岩浆怪 execute as @e[type=minecraft:magma_cube] run attribute @s minecraft:generic.scale modifier remove magma execute as @e[type=minecraft:magma_cube] run attribute @s minecraft:generic.attack_damage modifier remove magma execute as @e[type=minecraft:magma_cube,tag=!sbcore] run data merge entity @s {Tags:["sbcore"],NoGravity:1b} -execute at @e[type=minecraft:magma_cube,tag=sbcore] run fill ~ ~ ~ ~ ~ ~ fire replace air +execute at @e[type=minecraft:magma_cube,tag=sbcore,nbt={OnGround:1b}] run fill ~ ~ ~ ~ ~ ~ fire replace air execute as @e[type=minecraft:magma_cube,tag=sbcore,nbt={NoGravity:1b}] run attribute @s minecraft:generic.scale modifier add magma -0.5 add_multiplied_total execute as @e[type=minecraft:magma_cube,tag=sbcore,nbt={OnGround:1b}] run attribute @s minecraft:generic.attack_damage modifier add magma -0.5 add_multiplied_total +execute at @e[type=minecraft:magma_cube,tag=sbcore,nbt={NoGravity:1b}] run particle minecraft:flame ~ ~ ~ 1 -1 1 0.01 1 force + #监守者 execute as @e[type=minecraft:warden,tag=!sbcore] run data merge entity @s {Tags:["sbcore"],attributes:[{id:"generic.max_health",base:150},{id:"generic.scale",base:0.9},{id:"generic.water_movement_efficiency",base:1}]} execute as @e[type=minecraft:warden,tag=sbcore,nbt={Brain:{memories:{"minecraft:sonic_boom_cooldown":{value:{},ttl:0L}}}}] run data merge entity @s {Brain:{memories:{"minecraft:sonic_boom_cooldown":{value:{},ttl:1200L}}}} @@ -227,7 +232,7 @@ execute as @e[type=minecraft:elder_guardian,tag=sbcore] at @s if entity @a[dista execute as @e[type=minecraft:elder_guardian,tag=sbcore] at @s if entity @a[distance=..4,gamemode=!spectator] as @e[distance=..2.5,type=!minecraft:elder_guardian] run damage @s 6.0 minecraft:mob_attack by @e[type=minecraft:elder_guardian,tag=sbcore,limit=1,sort=nearest] effect give @e[type=minecraft:elder_guardian,tag=sbcore] regeneration infinite 0 true execute at @e[type=minecraft:elder_guardian,tag=sbcore] run effect give @e[type=minecraft:guardian,tag=sbcore,distance=..16] regeneration infinite 0 true -execute at @e[type=minecraft:elder_guardian,tag=sbcore] as @a[distance=..32] at @s if block ~ ~ ~ water run attribute @s minecraft:generic.gravity modifier add guardian_curse -0.16 add_value +execute at @e[type=minecraft:elder_guardian,tag=sbcore] as @a[distance=..32,gamemode=!spectator] at @s if block ~ ~ ~ water run attribute @s minecraft:generic.gravity modifier add guardian_curse -0.16 add_value execute at @e[type=minecraft:elder_guardian,tag=sbcore] as @e[type=minecraft:item,nbt={Item:{id:"minecraft:prismarine_shard"}},distance=..16] at @s run summon minecraft:lightning_bolt ~ ~ ~ {Tags:["sbcore"]} #潜影贝 diff --git a/data/sbcore/function/others.mcfunction b/data/sbcore/function/others.mcfunction index 89bb38b..118bdc3 100644 --- a/data/sbcore/function/others.mcfunction +++ b/data/sbcore/function/others.mcfunction @@ -28,7 +28,7 @@ execute as @e[type=minecraft:small_fireball] run kill @s #大火球 execute at @e[type=minecraft:fireball,tag=!sbcore] run summon minecraft:fireball ~ ~ ~ {Tags:["sbcore"],Passengers:[{id:"minecraft:fireball",Tags:["sbcore"],Passengers:[{id:"minecraft:fireball",Tags:["sbcore"]}]}]} -execute at @e[type=minecraft:fireball,tag=!sbcore] as @e[type=minecraft:fireball,tag=sbcore,sort=nearest,limit=1,tag=sbcore] run data modify entity @s Motion set from entity @e[type=minecraft:fireball,sort=nearest,limit=1,tag=!sbcore] Motion +execute at @e[type=minecraft:fireball,tag=!sbcore] as @e[type=minecraft:fireball,sort=nearest,limit=1,tag=sbcore] run data modify entity @s Motion set from entity @e[type=minecraft:fireball,sort=nearest,limit=1,tag=!sbcore] Motion execute as @e[type=minecraft:fireball,tag=!sbcore] run kill @s #闪电 diff --git a/data/sbcore/function/passive.mcfunction b/data/sbcore/function/passive.mcfunction index ec57794..17113ac 100644 --- a/data/sbcore/function/passive.mcfunction +++ b/data/sbcore/function/passive.mcfunction @@ -19,8 +19,9 @@ execute as @e[type=minecraft:iron_golem,tag=!sbcore] run data merge entity @s {T execute as @e[type=minecraft:iron_golem,tag=sbcore] run effect give @s minecraft:regeneration infinite 0 true #流浪商人 -execute as @e[type=minecraft:wandering_trader] at @s run tp @s ~ ~ ~ ~18 ~ -execute at @e[type=minecraft:wandering_trader] at @s run particle minecraft:heart ^ ^0.5 ^7.5 0.1 0 0.1 0.1 2 normal +execute as @e[type=minecraft:wandering_trader] at @s run tp @s ~ ~ ~ ~36 ~ +execute at @e[type=minecraft:wandering_trader] run particle minecraft:heart ^ ^0.5 ^7.48 0.1 0 0.1 0.1 2 normal + execute at @e[type=minecraft:wandering_trader] run effect give @e[distance=..7.5,type=!minecraft:player] minecraft:glowing 15 0 true execute at @e[type=minecraft:wandering_trader] run effect give @e[distance=..7.5,type=!minecraft:player] minecraft:bad_omen 15 4 true execute at @e[type=minecraft:wandering_trader] run effect give @e[distance=..7.5,type=!minecraft:player] minecraft:resistance 15 0 true @@ -90,14 +91,17 @@ execute at @e[type=minecraft:allay,tag=!sbcore] at @a[distance=..16,gamemode=!sp execute as @e[type=minecraft:camel,tag=!sbcore] run data merge entity @s {Tags:["sbcore"],attributes:[{id:"generic.fall_damage_multiplier",base:0},{id:"generic.jump_strength",base:0.5},{id:"generic.movement_speed",base:0.15},{id:"generic.armor",base:20}]} #赤足兽 - execute as @e run attribute @s minecraft:generic.burning_time modifier remove strider_grace #execute at @e[type=minecraft:strider,tag=!sbcore] run effect give @e[type=!minecraft:strider,distance=..5,type=!minecraft:player] minecraft:fire_resistance 1 0 true #execute at @e[type=minecraft:strider,tag=!sbcore] run effect give @a[distance=..5,gamemode=!spectator] minecraft:fire_resistance 1 0 true execute at @e[type=minecraft:strider,tag=!sbcore] as @e[distance=..5] run attribute @s minecraft:generic.burning_time modifier add strider_grace -1 add_multiplied_total -execute at @e[type=minecraft:strider,tag=!sbcore] at @e[distance=..5,type=!minecraft:player] run particle minecraft:splash ~ ~1 ~ 0.25 0.5 0.25 0 2 normal +execute at @e[type=minecraft:strider,tag=!sbcore] at @e[distance=..5,type=!minecraft:player,type=!minecraft:strider] run particle minecraft:splash ~ ~1 ~ 0.25 0.5 0.25 0 2 normal execute at @e[type=minecraft:strider,tag=!sbcore] at @a[distance=..5,gamemode=!spectator] run particle minecraft:splash ~ ~1 ~ 0.25 0.5 0.25 0 2 normal +execute at @e[type=minecraft:strider,tag=!sbcore] run particle minecraft:splash ~ ~1 ~ 0.25 0.5 0.25 0 2 normal + +execute as @e[type=minecraft:strider,tag=!sbcore] at @s run damage @e[type=minecraft:magma_cube,sort=nearest,limit=1,distance=..3] 0.5 mob_attack by @s +execute as @e[type=minecraft:strider,tag=!sbcore] at @s run damage @e[type=minecraft:magma_cube,sort=nearest,limit=1,distance=..1.5] 1.5 mob_attack by @s #僵尸猪人 execute as @e[type=minecraft:zombified_piglin,tag=!sbcore] run data merge entity @s {Tags:["sbcore"],CustomName:'"Grumm"',attributes:[{id:"generic.gravity",base:-0.08}]} \ No newline at end of file