execute as @a[predicate=survivalplus:lucky_foot] at @s if block ~ ~-.1 ~ #minecraft:mineable/shovel if predicate survivalplus:100thchance run effect give @s jump_boost 3 1
execute as @a[predicate=survivalplus:lucky_foot] at @s if block ~ ~-.1 ~ #minecraft:mineable/pickaxe if predicate survivalplus:100thchance run effect give @s haste 3 1
execute as @a[predicate=survivalplus:lucky_foot] at @s if block ~ ~-.1 ~ #minecraft:mineable/axe if predicate survivalplus:100thchance run effect give @s speed 3 1
execute as @a[predicate=survivalplus:lucky_foot] at @s if block ~ ~-.1 ~ #minecraft:mineable/hoe if predicate survivalplus:100thchance run effect give @s levitation 1 4
execute as @a[predicate=survivalplus:lucky_foot] at @s if block ~ ~-.1 ~ #minecraft:base_stone_nether if predicate survivalplus:100thchance run effect give @s regeneration 3
execute as @a[predicate=survivalplus:lucky_foot] at @s if block ~ ~-.1 ~ #minecraft:base_stone_nether if predicate survivalplus:100thchance run effect give @s fire_resistance 3
execute as @a[predicate=survivalplus:lucky_foot] at @s if block ~ ~-.1 ~ #minecraft:base_stone_overworld if predicate survivalplus:100thchance run effect give @s resistance 3 1
execute as @a[predicate=survivalplus:lucky_foot] at @s if block ~ ~-.1 ~ air if predicate survivalplus:100thchance run effect give @s slow_falling 3
execute as @a[predicate=survivalplus:lucky_foot] at @s if block ~ ~ ~ water if predicate survivalplus:100thchance run effect give @s water_breathing 3
execute as @a[predicate=survivalplus:lucky_foot,predicate=survivalplus:1chance,predicate=survivalplus:glutton] run effect give @s saturation 1
execute as @a[predicate=survivalplus:lucky_foot,predicate=survivalplus:1chance,predicate=survivalplus:dmgredtrinket] run effect give @s resistance 10
execute as @a[predicate=survivalplus:lucky_foot,nbt={Inventory:[{id:"minecraft:beetroot"}]}] at @s if predicate survivalplus:1chance run effect give @s minecraft:regeneration 4 1
execute as @a[nbt={Inventory:[{id:"minecraft:rabbit_foot",components:{"minecraft:custom_data":{luck:tag}}}]}] at @s if block ~ ~-.1 ~ grass_block if predicate survivalplus:100thchance run summon rabbit ~ ~ ~

execute as @a[nbt={Inventory:[{id:"minecraft:rabbit_foot",components:{"minecraft:custom_data":{luck:tag}}}]},nbt={Inventory:[{id:"minecraft:carrot"}]}] if predicate survivalplus:100thchance run effect give @s luck 180
execute as @a[nbt={Inventory:[{id:"minecraft:rabbit_foot",components:{"minecraft:custom_data":{luck:tag}}}]},nbt={Inventory:[{id:"minecraft:carrot",components:{"minecraft:custom_data":{wild:tag}}}]}] if predicate survivalplus:100thchance run effect give @s luck 180 1
execute as @a[nbt={Inventory:[{id:"minecraft:rabbit_foot",components:{"minecraft:custom_data":{luck:tag}}}]},nbt=!{Inventory:[{id:"minecraft:carrot"}]}] if predicate survivalplus:100thchance run give @s carrot
execute as @a[nbt={Inventory:[{id:"minecraft:iron_sword",components:{"minecraft:custom_data":{luck:tag}}}]}] if predicate survivalplus:100thchance run effect give @s luck 180