619e7bfa87 | ||
---|---|---|
.github/workflows | ||
chatcommands | ||
examples | ||
mapgens | ||
test | ||
textures | ||
transform | ||
.gitignore | ||
.luacheckrc | ||
config.ld | ||
create_catalog.lua | ||
data.lua | ||
deserialize.lua | ||
deserialize_mapblock.lua | ||
display.lua | ||
docker-compose.yml | ||
get_catalog.lua | ||
init.lua | ||
license.txt | ||
mapblock.lua | ||
mapblocks.jpg | ||
mod.conf | ||
mtt.lua | ||
pos.lua | ||
privs.lua | ||
readme.md | ||
screenshot.png | ||
serialize_mapblock.lua | ||
util.lua |
readme.md
mapblock_lib
Mapblock-granular world operations, transformations and utilities
Features:
- Load/Save mapblocks from/to disk
- Serializes param1/param2/nodetimers and metadata
- Transforms mapblock data on the fly (rotation, orientation, replacements)
- Supports caching of the loaded mapblocks for fast in-world placement (mapgen)
- Adds position dependent data-storage (
mapblock_lib.create_data_storage(mod_storage)
) with caching
Use-cases:
- Custom mapgens with pre-built schematics
- Building-mods
Demo:
Chatcommands
Single mapblock operations
/mapblock_show
marks the current mapblock with a grid/mapblock_rotate_y [90,180,270]
rotates the current mapblock around the y axis/mapblock_mark
(only available if theworldedit
mod is present) marks the current mapblock with worledit
Multi-mapblock operations
/mapblock_pos1
marks the pos1 for a multi-mapblock ex-/import/mapblock_pos2
marks the pos2 for a multi-mapblock ex-/import/mapblock_save [name]
saves the mapblock region in<world_path/mapblocks/<name>
/mapblock_load [name]
loads a saved mapblock region/mapblock_allocate [name]
allocates and displays the affected region
Api
See: https://buckaroobanzay.github.io/mapblock_lib/
License
- Code: MIT
- Textures: CC-BY-SA 3.0