8/23/2023 0 Comments Entity data creator minecraft![]() You can run the tests with poetry run pytest. You should now be able to install the required dependencies. This project uses poetry so you'll need to install it first if you want to be able to work with the project locally. They mirror the root properties of the tag JSON file format.Ĭheck out the wiki for further details. The values and replace attributes can be set in the constructor. from mcpack import DataPack, BlockTag pack = DataPack ( 'Test', 'Test description.' ) pack = BlockTag () block_tag = pack. They are all identical in structure, the only difference between them is the namespace directory they get written to. TagsīlockTag, ItemTag, FluidTag, FunctionTag and EntityTypeTag objects represent Minecraft block, item, fluid, function and entity type tags respectively. The Structure class inherits from an nbtlib schema that takes care of wrapping python values with the appropriate nbt tags.Ĭheck out the wiki for further details. mcpack uses nbtlib to manipulate nbt data. They mirror the root properties of the structure NBT file format. entities ) # List()Īll the attributes can be set in the constructor. data_version ) # Int(1503) print ( structure. from mcpack import DataPack, Structure pack = DataPack ( 'Test', 'Test description.' ) pack = Structure () structure = pack. Structure objects represent Minecraft structures. They mirror the root properties of the recipe JSON file format.Ĭheck out the wiki for further details. count ) # NoneĪll the attributes can be set in the constructor. namespaces ) # defaultdict(, print ( recipe. ![]() description ) # 'Test description.' print ( pack. from mcpack import DataPack pack = DataPack ( 'Test', 'Test description.' ) print ( pack. The DataPack class represents a minecraft data pack. $ pip install mcpackĬheck out the examples for a quick overview. Make sure that you're using python 3.7 or above. dump ( '.minecraft/saves/New World/datapacks' ) Installation from mcpack import DataPack, Function pack = DataPack ( 'My cool pack', 'This is the description of my pack.' ) pack = Function ( 'say Hello, world! \n ' 'give minecraft:dead_bush \n ' ) pack. ⚠️ THIS PROJECT IS DEPRECATED ⚠️ Please migrate to Ī python library for programmatically creating and editing Minecraft data packs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |