
execute if entity @s[type=acacia_boat] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"acacia_boat"}
execute if entity @s[type=acacia_chest_boat] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"acacia_chest_boat"}
execute if entity @s[type=allay] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"allay"}
execute if entity @s[type=area_effect_cloud] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"area_effect_cloud"}
execute if entity @s[type=armadillo] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"armadillo"}
execute if entity @s[type=armor_stand] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"armor_stand"}
execute if entity @s[type=arrow] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"arrow"}
execute if entity @s[type=axolotl] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"axolotl"}
execute if entity @s[type=bamboo_chest_raft] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"bamboo_chest_raft"}
execute if entity @s[type=bamboo_raft] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"bamboo_raft"}
execute if entity @s[type=bat] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"bat"}
execute if entity @s[type=bee] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"bee"}
execute if entity @s[type=birch_boat] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"birch_boat"}
execute if entity @s[type=birch_chest_boat] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"birch_chest_boat"}
execute if entity @s[type=blaze] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"blaze"}
execute if entity @s[type=block_display] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"block_display"}
execute if entity @s[type=bogged] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"bogged"}
execute if entity @s[type=breeze] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"breeze"}
execute if entity @s[type=breeze_wind_charge] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"breeze_wind_charge"}
execute if entity @s[type=camel] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"camel"}
execute if entity @s[type=cat] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"cat"}
execute if entity @s[type=cave_spider] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"cave_spider"}
execute if entity @s[type=cherry_boat] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"cherry_boat"}
execute if entity @s[type=cherry_chest_boat] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"cherry_chest_boat"}
execute if entity @s[type=chest_minecart] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"chest_minecart"}
execute if entity @s[type=chicken] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"chicken"}
execute if entity @s[type=cod] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"cod"}
execute if entity @s[type=command_block_minecart] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"command_block_minecart"}
execute if entity @s[type=cow] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"cow"}
execute if entity @s[type=creaking] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"creaking"}
execute if entity @s[type=creeper] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"creeper"}
execute if entity @s[type=dark_oak_boat] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"dark_oak_boat"}
execute if entity @s[type=dark_oak_chest_boat] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"dark_oak_chest_boat"}
execute if entity @s[type=dolphin] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"dolphin"}
execute if entity @s[type=donkey] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"donkey"}
execute if entity @s[type=dragon_fireball] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"dragon_fireball"}
execute if entity @s[type=drowned] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"drowned"}
execute if entity @s[type=egg] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"egg"}
execute if entity @s[type=elder_guardian] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"elder_guardian"}
execute if entity @s[type=end_crystal] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"end_crystal"}
execute if entity @s[type=ender_dragon] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"ender_dragon"}
execute if entity @s[type=ender_pearl] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"ender_pearl"}
execute if entity @s[type=enderman] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"enderman"}
execute if entity @s[type=endermite] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"endermite"}
execute if entity @s[type=evoker] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"evoker"}
execute if entity @s[type=evoker_fangs] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"evoker_fangs"}
execute if entity @s[type=experience_bottle] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"experience_bottle"}
execute if entity @s[type=experience_orb] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"experience_orb"}
execute if entity @s[type=eye_of_ender] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"eye_of_ender"}
execute if entity @s[type=falling_block] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"falling_block"}
execute if entity @s[type=fireball] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"fireball"}
execute if entity @s[type=firework_rocket] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"firework_rocket"}
execute if entity @s[type=fishing_bobber] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"fishing_bobber"}
execute if entity @s[type=fox] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"fox"}
execute if entity @s[type=frog] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"frog"}
execute if entity @s[type=furnace_minecart] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"furnace_minecart"}
execute if entity @s[type=ghast] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"ghast"}
execute if entity @s[type=giant] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"giant"}
execute if entity @s[type=glow_item_frame] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"glow_item_frame"}
execute if entity @s[type=glow_squid] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"glow_squid"}
execute if entity @s[type=goat] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"goat"}
execute if entity @s[type=guardian] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"guardian"}
execute if entity @s[type=hoglin] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"hoglin"}
execute if entity @s[type=hopper_minecart] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"hopper_minecart"}
execute if entity @s[type=horse] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"horse"}
execute if entity @s[type=husk] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"husk"}
execute if entity @s[type=illusioner] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"illusioner"}
execute if entity @s[type=interaction] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"interaction"}
execute if entity @s[type=iron_golem] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"iron_golem"}
execute if entity @s[type=item] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"item"}
execute if entity @s[type=item_display] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"item_display"}
execute if entity @s[type=item_frame] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"item_frame"}
execute if entity @s[type=jungle_boat] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"jungle_boat"}
execute if entity @s[type=jungle_chest_boat] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"jungle_chest_boat"}
execute if entity @s[type=leash_knot] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"leash_knot"}
execute if entity @s[type=lightning_bolt] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"lightning_bolt"}
execute if entity @s[type=llama] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"llama"}
execute if entity @s[type=llama_spit] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"llama_spit"}
execute if entity @s[type=magma_cube] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"magma_cube"}
execute if entity @s[type=mangrove_boat] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"mangrove_boat"}
execute if entity @s[type=mangrove_chest_boat] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"mangrove_chest_boat"}
execute if entity @s[type=marker] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"marker"}
execute if entity @s[type=minecart] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"minecart"}
execute if entity @s[type=mooshroom] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"mooshroom"}
execute if entity @s[type=mule] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"mule"}
execute if entity @s[type=oak_boat] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"oak_boat"}
execute if entity @s[type=oak_chest_boat] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"oak_chest_boat"}
execute if entity @s[type=ocelot] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"ocelot"}
execute if entity @s[type=ominous_item_spawner] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"ominous_item_spawner"}
execute if entity @s[type=painting] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"painting"}
execute if entity @s[type=pale_oak_boat] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"pale_oak_boat"}
execute if entity @s[type=pale_oak_chest_boat] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"pale_oak_chest_boat"}
execute if entity @s[type=panda] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"panda"}
execute if entity @s[type=parrot] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"parrot"}
execute if entity @s[type=phantom] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"phantom"}
execute if entity @s[type=pig] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"pig"}
execute if entity @s[type=piglin] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"piglin"}
execute if entity @s[type=piglin_brute] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"piglin_brute"}
execute if entity @s[type=pillager] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"pillager"}
execute if entity @s[type=player] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"player"}
execute if entity @s[type=polar_bear] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"polar_bear"}
execute if entity @s[type=splash_potion] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"potion"}
execute if entity @s[type=pufferfish] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"pufferfish"}
execute if entity @s[type=rabbit] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"rabbit"}
execute if entity @s[type=ravager] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"ravager"}
execute if entity @s[type=salmon] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"salmon"}
execute if entity @s[type=sheep] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"sheep"}
execute if entity @s[type=shulker] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"shulker"}
execute if entity @s[type=shulker_bullet] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"shulker_bullet"}
execute if entity @s[type=silverfish] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"silverfish"}
execute if entity @s[type=skeleton] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"skeleton"}
execute if entity @s[type=skeleton_horse] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"skeleton_horse"}
execute if entity @s[type=slime] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"slime"}
execute if entity @s[type=small_fireball] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"small_fireball"}
execute if entity @s[type=sniffer] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"sniffer"}
execute if entity @s[type=snow_golem] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"snow_golem"}
execute if entity @s[type=snowball] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"snowball"}
execute if entity @s[type=spawner_minecart] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"spawner_minecart"}
execute if entity @s[type=spectral_arrow] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"spectral_arrow"}
execute if entity @s[type=spider] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"spider"}
execute if entity @s[type=spruce_boat] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"spruce_boat"}
execute if entity @s[type=spruce_chest_boat] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"spruce_chest_boat"}
execute if entity @s[type=squid] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"squid"}
execute if entity @s[type=stray] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"stray"}
execute if entity @s[type=strider] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"strider"}
execute if entity @s[type=tadpole] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"tadpole"}
execute if entity @s[type=text_display] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"text_display"}
execute if entity @s[type=tnt] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"tnt"}
execute if entity @s[type=tnt_minecart] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"tnt_minecart"}
execute if entity @s[type=trader_llama] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"trader_llama"}
execute if entity @s[type=trident] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"trident"}
execute if entity @s[type=tropical_fish] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"tropical_fish"}
execute if entity @s[type=turtle] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"turtle"}
execute if entity @s[type=vex] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"vex"}
execute if entity @s[type=villager] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"villager"}
execute if entity @s[type=vindicator] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"vindicator"}
execute if entity @s[type=wandering_trader] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"wandering_trader"}
execute if entity @s[type=warden] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"warden"}
execute if entity @s[type=wind_charge] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"wind_charge"}
execute if entity @s[type=witch] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"witch"}
execute if entity @s[type=wither] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"wither"}
execute if entity @s[type=wither_skeleton] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"wither_skeleton"}
execute if entity @s[type=wither_skull] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"wither_skull"}
execute if entity @s[type=wolf] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"wolf"}
execute if entity @s[type=zoglin] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"zoglin"}
execute if entity @s[type=zombie] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"zombie"}
execute if entity @s[type=zombie_horse] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"zombie_horse"}
execute if entity @s[type=zombie_villager] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"zombie_villager"}
execute if entity @s[type=zombified_piglin] at @s run function vanilla_refresh:wand/z/clone_set_summon {entity:"zombified_piglin"}

execute if entity @s[type=#vanilla_refresh:markers] at @s run particle end_rod ~ ~ ~ 0 0 0 0 1 force @a[distance=..64]

tag @s remove refresh_CIE1
tag @s remove refresh_CIE2

execute if entity @p[tag=refresh_temp_usingwand,distance=..128,predicate=!vanilla_refresh:condition/sneaking] run function vanilla_refresh:wand/z/clone_set_normal
execute at @s if entity @p[tag=refresh_temp_usingwand,distance=..128,predicate=!vanilla_refresh:condition/sneaking] run function vanilla_refresh:wand/z/clone_set_normal

execute if entity @p[tag=refresh_temp_usingwand,distance=..128,predicate=vanilla_refresh:condition/sneaking] run function vanilla_refresh:wand/z/clone_set_sneak
execute at @s if entity @s[type=#vanilla_refresh:markers] if entity @p[tag=refresh_temp_usingwand,distance=..128,predicate=vanilla_refresh:condition/sneaking] run function vanilla_refresh:wand/z/clone_set_sneak

scoreboard players set temp refresh_count 999