orb

resolver implementation in python for the json based origins mod datapack defenition file format orb.

copyright 2024 pin (https://pinmac.neocities.org)

this is free software, as in freedom, to use, modify, rework the code as long as you give proper credit, don't claim the original as your own and warn the user if the code has been modified! this software is provided as is, with no warranty, use at one's own risk!


you need python 3.10 and up to run the script!

command line arguments

usage: orb [-h] [-v] filepath workspace

fields

option optional description
-h, --help yes show a help message and exit
-v, --verbose yes print status messages while executing
filepath no path to .orb file to resolve
workspace no path to folder to work in

example

$ py orb.py -v catboy.orb test_
loading parameters

loaded orb file
defined namespace as pin
defined pack format as 18
defined indent level as 4
should do powerlist/index.md: True
defined workspace path as test

loaded parameters

creating files and folders

constructed folder structure, made 8 folders.
constructed pack.mcmeta
constructed origin pin:catboy
constructed layer file containing 1 origins
constructed file pin:catboy/diet
constructed file pin:catboy/fisher
constructed file pin:catboy/fragile
constructed file pin:catboy/meow
constructed file pin:catboy/nocturnal
constructed file pin:catboy/notswimmer
constructed file pin:catboy/pounce
constructed file pin:catboy/swift
constructed file pin:items/raw_fish

created files and folders

zipped folder tree

job done in 0.046201229095458984 seconds. processed 30 files and folders.