#comandos que pasan cada 5 segundos
schedule function inqui:bile_conversion 5s
#fuck chunkloading muhahahaahaha
execute in inqui:finalitas run forceload add 5 0
#crusting with gastgaber
execute as @e[type= spore:gastgaber] at @s if block ~ ~ ~ minecraft:air run fill ~-25 ~-1 ~-25 ~25 ~-1 ~25 spore:crusted_bile replace minecraft:water
#licker timer
execute as @e[type=spore:licker] run scoreboard objectives add lickcount dummy "licky count"
execute as @e[type=spore:licker] unless score @s lickcount matches 0.. run scoreboard players set @s lickcount 20
#nuke timer
execute as @e[type=item,nbt={Item:{id:"minecraft:player_head",components:{"minecraft:profile":{properties:[{value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvM2YwYTI5ZDk0YTdjYTUxODcwYWQ5ZTA3YTJkZTFmZmIwNjYyZmQ4ZDhjOTk1N2MwNGI0ZmFiYWU1NjNjMGM0OCJ9fX0="}]}}}}] run scoreboard objectives add nuke dummy "nule timer"
execute as @e[type=item,nbt={Item:{id:"minecraft:player_head",components:{"minecraft:profile":{properties:[{value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvM2YwYTI5ZDk0YTdjYTUxODcwYWQ5ZTA3YTJkZTFmZmIwNjYyZmQ4ZDhjOTk1N2MwNGI0ZmFiYWU1NjNjMGM0OCJ9fX0="}]}}}}] unless score @s nuke matches 0.. run scoreboard players set @s nuke 12
#ice nuke timer
execute as @e[type=item,nbt={Item:{id:"minecraft:player_head",components:{"minecraft:profile":{properties:[{value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTFiNWY2OWUxOTAxMDE5NGExOWNhZjE4NDM3YzdjYTcxMjIxZTQxM2FhMDg5ZWFmYTQ3YjliZGQ5Zjk5ZGQ4NSJ9fX0="}]}}}}] run scoreboard objectives add ice_nuke dummy "freeze timer"
execute as @e[type=item,nbt={Item:{id:"minecraft:player_head",components:{"minecraft:profile":{properties:[{value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTFiNWY2OWUxOTAxMDE5NGExOWNhZjE4NDM3YzdjYTcxMjIxZTQxM2FhMDg5ZWFmYTQ3YjliZGQ5Zjk5ZGQ4NSJ9fX0="}]}}}}] unless score @s ice_nuke matches 0.. run scoreboard players set @s ice_nuke 12
#nuke
execute as @e[type=item,nbt={Item:{id:"minecraft:player_head",components:{"minecraft:profile":{properties:[{value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvM2YwYTI5ZDk0YTdjYTUxODcwYWQ5ZTA3YTJkZTFmZmIwNjYyZmQ4ZDhjOTk1N2MwNGI0ZmFiYWU1NjNjMGM0OCJ9fX0="}]}}}},scores={nuke=1..}] at @s run playsound spore:scanner_item neutral @a[distance= ..150] ~ ~ ~ 5 0.1 1
execute as @e[type=item,nbt={Item:{id:"minecraft:player_head",components:{"minecraft:profile":{properties:[{value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvM2YwYTI5ZDk0YTdjYTUxODcwYWQ5ZTA3YTJkZTFmZmIwNjYyZmQ4ZDhjOTk1N2MwNGI0ZmFiYWU1NjNjMGM0OCJ9fX0="}]}}}},scores={nuke=1..}] run scoreboard players remove @s nuke 1
execute as @e[type=item,nbt={Item:{id:"minecraft:player_head",components:{"minecraft:profile":{properties:[{value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvM2YwYTI5ZDk0YTdjYTUxODcwYWQ5ZTA3YTJkZTFmZmIwNjYyZmQ4ZDhjOTk1N2MwNGI0ZmFiYWU1NjNjMGM0OCJ9fX0="}]}}}},scores={nuke=0}] at @s run function inqui:15sec_calls/nuke
#nuke2
execute as @e[type=item,nbt={Item:{id:"minecraft:player_head",components:{"minecraft:profile":{properties:[{value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTFiNWY2OWUxOTAxMDE5NGExOWNhZjE4NDM3YzdjYTcxMjIxZTQxM2FhMDg5ZWFmYTQ3YjliZGQ5Zjk5ZGQ4NSJ9fX0="}]}}}},scores={ice_nuke=1..}] at @s run playsound minecraft:entity.warden.heartbeat neutral @a[distance= ..200] ~ ~ ~ 5 0.1 1
execute as @e[type=item,nbt={Item:{id:"minecraft:player_head",components:{"minecraft:profile":{properties:[{value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTFiNWY2OWUxOTAxMDE5NGExOWNhZjE4NDM3YzdjYTcxMjIxZTQxM2FhMDg5ZWFmYTQ3YjliZGQ5Zjk5ZGQ4NSJ9fX0="}]}}}},scores={ice_nuke=1..}] run scoreboard players remove @s ice_nuke 1
execute as @e[type=item,nbt={Item:{id:"minecraft:player_head",components:{"minecraft:profile":{properties:[{value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTFiNWY2OWUxOTAxMDE5NGExOWNhZjE4NDM3YzdjYTcxMjIxZTQxM2FhMDg5ZWFmYTQ3YjliZGQ5Zjk5ZGQ4NSJ9fX0="}]}}}},scores={ice_nuke=0}] at @s run function inqui:15sec_calls/nuke2
#fuck you claw
execute as @e[type=spore:claw] run scoreboard objectives add clawtimer dummy "claw remains"
execute as @e[type=spore:claw] unless score @s clawtimer matches 0.. run scoreboard players set @s clawtimer 10
#effects for no creeepers, o man:
execute as @e[type=#spore:fungus_entities] at @s run effect give @e[type=#inqui:victims,distance=..15] minecraft:wither 5 5 true
#V2
execute as @e[tag=inf_pla_boss] at @p if entity @p[distance=..40] run spore:set_area
execute as @e[tag=inf_pla_boss] run data merge entity @s {evolution:0}
execute as @e[tag=inf_pla_boss] run data merge entity @s {kills:30}
execute as @e[tag=inf_pla_boss] at @s run damage @s 0 minecraft:out_of_world by @p
execute as @e[tag=inf_pla_boss] at @s run attribute @e[tag=inf_pla_boss,limit=1,sort=nearest] minecraft:generic.knockback_resistance base set 1
#Final
execute as @a at @s unless entity @e[type=spore:mound,nbt={age:5}] run function inqui:5sec_calls/final
execute as @a unless entity @e[type=spore:mound,nbt={age:5}] run function inqui:5sec_calls/win
#mimicry
execute as @a if items entity @s weapon.mainhand *[minecraft:custom_data={mimicry:1b}] run function inqui:5sec_calls/mimicry
#end
execute as @e[type=spore:mound,nbt={age:5}] at @s if score !finale finalitas matches 1 unless entity @e[type=spore:proto,tag=nunny] run function inqui:lore2/1