Hello! Im Raikas and i'll try make a space roleplay server.
I need a stamina/oxygen system. Like in one helmet can be 100% oxygen and other can have 63% oxygen. I want use NBT tags.
My code does't get any errors.
Code:
I want use NBT But i dont know how.
Pls help
I need a stamina/oxygen system. Like in one helmet can be 100% oxygen and other can have 63% oxygen. I want use NBT tags.
My code does't get any errors.
Code:
code_language.skript:
function puePuku(p: player):
set helmet of {_p} to diamond helmet named "&3Avaruuspuvun &3&lHappikypärä"
set chestplate of {_p} to chain chestplate named "&3Avaruuspuvun &3&lRakettireppu"
set leggings of {_p} to iron leggings named "&3Avaruuspuvun &3&lHousut"
set boots of {_p} to iron boots named "&3Avaruuspuvun &3&lKengät"
command /avaruuspuku:
trigger:
puePuku(player)
every 10 second in "world":
loop all players:
if {%loop-player%.number} is not set:
set {%loop-player%.number} to 0
if "%region at loop-player%" contains "Spawni":
wait 1 tick
else:
loop-player's helmet is not diamond helmet named "&3Avaruuspuvun &3&lHappikypärä"
damage loop-player by 1 heart
send loop-player title "&c! VAARA !" with subtitle "&3Ei happea tai viallinen kypärä!"
I want use NBT But i dont know how.
Pls help