开源软件名称(OpenSource Name):mcbeet/beet开源软件地址(OpenSource Url):https://github.com/mcbeet/beet开源编程语言(OpenSource Language):Python 90.6%开源软件介绍(OpenSource Introduction):Beet
IntroductionMinecraft resource packs and data packs work well as distribution formats but can be pretty limiting as authoring formats. You can quickly end up having to manage hundreds of files, some of which might be buried within the bundled output of various generators. The Screencasts
Libraryfrom beet import ResourcePack, Texture
# Open a zipped resource pack and add a custom stone texture
with ResourcePack(path="stone.zip") as assets:
assets["minecraft:block/stone"] = Texture(source_path="custom.png") The
Toolchainfrom beet import Context, Function
def greet(ctx: Context):
"""Plugin that adds a function for greeting the player."""
ctx.data["greet:hello"] = Function(["say hello"], tags=["minecraft:load"]) The
InstallationThe package can be installed with $ pip install beet To create and edit images programmatically you should install $ pip install beet[image]
$ pip install beet Pillow You can make sure that $ beet --help
Usage: beet [OPTIONS] COMMAND [ARGS]...
The beet toolchain.
Options:
-p, --project PATH Select project.
-s, --set OPTION Set config option.
-l, --log LEVEL Configure output verbosity.
-v, --version Show the version and exit.
-h, --help Show this message and exit.
Commands:
build Build the current project.
cache Inspect or clear the cache.
link Link the generated resource pack and data pack to Minecraft.
watch Watch the project directory and build on file changes. ContributingContributions are welcome. Make sure to first open an issue discussing the problem or the new feature before creating a pull request. The project uses $ poetry install --extras image You can run the tests with $ poetry run pytest
$ poetry run pytest --minecraft-latest We also use $ poetry run pytest --insta review The project must type-check with $ npm run watch
$ npm run check The code follows the $ poetry run isort beet tests
$ poetry run black beet tests
$ poetry run black --check beet tests License - MIT |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论