SupraSanny
Ağaç Yumruklayıcı
- En iyi cevaplar
- 0
Kod:
function setNBT(file: string, type: string, tag: string, val: string):
file {_file} doesn't exists:
create file {_file}
else:
remove "%{_tag}%" from nbt from {_file}
{_type} is "string":
set {_rval} to {_val}
{_type} is "integer":
set {_rval} to {_val} parsed as integer
{_type} is "boolean":
set {_rval} to {_val} parsed as boolean
{_type} is "number":
set {_rval} to {_val} parsed as number
add "{%{_tag}%:%{_rval}%}" to nbt from {_file}
NBT ile uğraşacak arkadaşlara yardımcı olmak istedim
Kullanımı:
Kod:
setNBT("dosya", "veri tipi", "veri adı", "veri")
setNBT("plugins/Skript/test.dat", "integer", "kills", "10")
SkStuff, SkQuery
Kendim için yapmıştım aslında, kullanışlı olduğundan paylaştım 