Рет қаралды 2,856
아니지 유하각을 잡았으니 쓸모있는건가?
scoreboard objectives add count dummy
scoreboard players add @p count 1
execute as @e[scores={count=18..}] at @s run scoreboard players reset @s count
execute as @e[scores={count=1}] at @s run item replace entity @s weapon.offhand with minecraft:tipped_arrow{Potion:"minecraft:swiftness"}
execute as @e[scores={count=2}] at @s run item replace entity @s weapon.offhand with minecraft:spectral_arrow
execute as @e[scores={count=3}] at @s run item replace entity @s weapon.offhand with minecraft:tipped_arrow{Potion:"minecraft:regeneration"}
execute as @e[scores={count=4}] at @s run item replace entity @s weapon.offhand with minecraft:tipped_arrow{Potion:"fire_resistance"}
execute as @e[scores={count=5}] at @s run item replace entity @s weapon.offhand with minecraft:tipped_arrow{Potion:"minecraft:night_vision"}
execute as @e[scores={count=6}] at @s run item replace entity @s weapon.offhand with minecraft:tipped_arrow{Potion:"minecraft:strength"}
execute as @e[scores={count=7}] at @s run item replace entity @s weapon.offhand with minecraft:tipped_arrow{Potion:"minecraft:leaping"}
execute as @e[scores={count=8}] at @s run item replace entity @s weapon.offhand with minecraft:tipped_arrow{Potion:"minecraft:invisibility"}
execute as @e[scores={count=9}] at @s run item replace entity @s weapon.offhand with minecraft:tipped_arrow{Potion:"minecraft:poison"}
execute as @e[scores={count=10}] at @s run item replace entity @s weapon.offhand with minecraft:tipped_arrow{Potion:"minecraft:weakness"}
execute as @e[scores={count=11}] at @s run item replace entity @s weapon.offhand with minecraft:tipped_arrow{Potion:"minecraft:slowness"}
execute as @e[scores={count=12}] at @s run item replace entity @s weapon.offhand with minecraft:tipped_arrow{Potion:"minecraft:harming"}
execute as @e[scores={count=13}] at @s run item replace entity @s weapon.offhand with minecraft:tipped_arrow{Potion:"minecraft:water_breathing"}
execute as @e[scores={count=14}] at @s run item replace entity @s weapon.offhand with minecraft:tipped_arrow{Potion:"minecraft:luck"}
execute as @e[scores={count=15}] at @s run item replace entity @s weapon.offhand with minecraft:tipped_arrow{Potion:"minecraft:turtle_master"}
execute as @e[scores={count=16}] at @s run item replace entity @s weapon.offhand with minecraft:tipped_arrow{Potion:"minecraft:slow_falling"}
execute as @e[scores={count=17}] at @s run item replace entity @s weapon.offhand with minecraft:tipped_arrow{Potion:"minecraft:healing"}