Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cl-Nbt

a library to generate minecraft-bedrock-nbt files

examples

please edit "output-file-path"

compound , number and string tags

(cl-nbt:serialize-tags "output-file-path"
                       (tag-compound "" (list (tag-byte "byte" 1)
                                              (tag-short "short" 1)
                                              (tag-integer "integer" 1)
                                              (tag-long "long" 1)
                                              (tag-float "float" 1.0)
                                              (tag-double "double" 1.0d0)
                                              (tag-string "string" "string"))))

list tags

simple list

(cl-nbt:serialize-tags "output-file-path"
                       (tag-compound "" (list (tag-list "byte-list" '(byte 1 2 3)))))

list in list

(cl-nbt:serialize-tags "output-file-path"
                       (tag-compound "" (list (tag-list "list-list" '(list (byte 1 2 3) 
                                                                           (byte 4 5 6))))))

empty list

(cl-nbt:serialize-tags "output-file-path"
                       (tag-compound "" (list (tag-list "void-list" '(byte)))))

or

(cl-nbt:serialize-tags "output-file-path"
                       (tag-compound "" (list (tag-list "void-list" '()))))

compound list

(cl-nbt:serialize-tags "output-file-path"
                       (tag-compound "" (list (tag-list "compound-list"
                                                        (list 'compound (list (tag-byte "byte" 1))
                                                                        (list (tag-integer "integer" 1)))))))

Running Tests

sbcl --load cl-nbt.asd \
     --eval "(ql:quickload :cl-nbt)"\
     --eval "(asdf:test-system :cl-nbt)"

References

bedrockwiki

About

a library for generate minecraft-bedrock-nbt files

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages