Datapack

PhasmoPack

сделай дата пак который по мотивом игры Phasmophobia а имено превращаться в призрака ещё зделай придметы из игры и для майкрафта а версию 1.21.11

data/phasmo/functions/tick.mcfunction
scoreboard players remove @a[scores={phasmo.cooldown=1..}] phasmo.cooldown 1
scoreboard players remove @a[scores={phasmo.timer=1..}] phasmo.timer 1

execute as @a[scores={phasmo.mode=1}] if score @s phasmo.timer matches 0 run function phasmo:ghost/end
execute as @a[scores={phasmo.mode=1}] unless entity @s[nbt={Health:0.0f}] run effect give @s minecraft:invisibility 2 0 true
execute as @a[scores={phasmo.mode=1}] unless entity @s[nbt={Health:0.0f}] run effect give @s minecraft:night_vision 2 0 true
execute as @a[scores={phasmo.mode=1}] unless entity @s[nbt={Health:0.0f}] run attribute @s minecraft:generic.movement_speed base set 0.12
execute as @a[scores={phasmo.mode=1}] unless entity @s[nbt={Health:0.0f}] run attribute @s minecraft:generic.max_health base set 10

execute as @a[scores={phasmo.mode=0}] run attribute @s minecraft:generic.max_health base set 20
execute as @a[scores={phasmo.mode=0}] run attribute @s minecraft:generic.movement_speed base set 0.1