Go to file
BuckarooBanzay 619e7bfa87 only execute local tests 2022-08-02 20:35:51 +02:00
.github/workflows also test latest tag 2022-04-17 12:15:02 +02:00
chatcommands expose get_pos/set_pos 2022-06-27 09:56:09 +02:00
examples loading/saving with zip format (#1) 2022-04-16 22:14:12 +02:00
mapgens loading/saving with zip format (#1) 2022-04-16 22:14:12 +02:00
test only execute local tests 2022-08-02 20:35:51 +02:00
textures initial commit 2021-01-21 19:30:26 +01:00
transform loading/saving with zip format (#1) 2022-04-16 22:14:12 +02:00
.gitignore add ldoc 2021-06-18 20:09:09 +02:00
.luacheckrc use mtt 2022-08-02 08:48:14 +02:00
config.ld update docs / add examples 2021-06-20 10:31:37 +02:00
create_catalog.lua loading/saving with zip format (#1) 2022-04-16 22:14:12 +02:00
data.lua add mod_storage backed spatial data storage 2022-07-29 10:02:33 +02:00
deserialize.lua add legacy /mapblock_load_plain 2022-05-06 14:23:53 +02:00
deserialize_mapblock.lua mapblock alignment optimizations 2022-07-29 08:29:59 +02:00
display.lua initial commit 2021-01-21 19:30:26 +01:00
docker-compose.yml use mtt 2022-08-02 08:48:14 +02:00
get_catalog.lua fix error propagation 2022-06-20 10:01:17 +02:00
init.lua use mtt 2022-08-02 08:48:14 +02:00
license.txt add license stuff 2021-01-30 11:08:53 +01:00
mapblock.lua loading/saving with zip format (#1) 2022-04-16 22:14:12 +02:00
mapblocks.jpg screenshot stuff 2022-07-28 14:51:33 +02:00
mod.conf use mtt 2022-08-02 08:48:14 +02:00
mtt.lua use mtt 2022-08-02 08:48:14 +02:00
pos.lua add missing file 2022-06-27 09:57:43 +02:00
privs.lua loading/saving with zip format (#1) 2022-04-16 22:14:12 +02:00
readme.md update readme 2022-07-29 10:18:23 +02:00
screenshot.png docs / screenshot 2021-01-21 19:36:42 +01:00
serialize_mapblock.lua loading/saving with zip format (#1) 2022-04-16 22:14:12 +02:00
util.lua add `mapblock_lib.is_mapblock_aligned(pos1, pos2)` 2022-07-29 08:23:03 +02:00

readme.md

mapblock_lib

ContentDB

Mapblock-granular world operations, transformations and utilities

Screenshot

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 the worldedit 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

Always has been