a mod for minetest

Kurtzmusch 249fbc65c5 added TODO.txt 5 rokov pred
.gitignore 13631a917d firs commit - proof of concept 5 rokov pred
LICENSE.txt c5a7061e39 renamed license.txt 5 rokov pred
README.md 2abbc0eb2d fixed readme formating 5 rokov pred
TODO.txt 249fbc65c5 added TODO.txt 5 rokov pred
api.lua 2ba62e3f30 added license headers 5 rokov pred
definitions.lua b8b4b91ae4 fixed smallblock deletion 5 rokov pred
depends.txt ecef6f5a28 added dependency file for testing with mtg 5 rokov pred
generate_map.lua e23ea98b9c added gpl copy and improved copyright notices readability 5 rokov pred
generate_nodeboxes.lua e23ea98b9c added gpl copy and improved copyright notices readability 5 rokov pred
generate_shapes.lua e23ea98b9c added gpl copy and improved copyright notices readability 5 rokov pred
init.lua cc27c88ef0 moved most of the code into api.lua and definitions.lua 5 rokov pred
util.lua 7b89b978e6 added all node placement prediction 5 rokov pred

README.md

k_smallblocks divides each node into 8 'subnodes', allowing for more detailed building, aswell as using its own logic for rotation prediction to make the screwdriver obsolete

the mod is still very WIP and right now only stonebrick subnodes are registered.

to test it, pick a block called Stone Brick Smallblock and place it in the world with LEFT click. to remove a smallblock from a node use RIGHT click - yes, its inverted - this is due to, afaik, a limitation of the engine

full scope of the project

when finished, this mod will act like an API for other mods to register their nodes if they wish to generate smallblocks for them.

22 nodes are generated and registered to cover all 255 possible 'shapes' a node of a given 'material' can have.

only 5 'base nodes' for a material will be craftable, the others will have to be crated by placing and combining these in the world the base nodes are:

  • smallblock
  • slab
  • half-slab
  • stair
  • full node

a full node by itslef will produce 8 smallblocks
2 smallblocks makes a half-slab
2 half-slabs makes a slab
3 half-slabs makes a stair

2 slabs makes a full node
4 half-slabs makes a full node
8 smallblocks makes a full node

all base nodes can be crafted back into smallblocks.

all recipes preserve the amount of material, theres never loss or excess.

a flag will allow mods to decide wheter or not the recipes are shapeless.

to make a stair corner, one would have to place a stair in the world and then place a smallblock on the desired position.

all nodes use align_style="world" so textures always align.

stairs and slabs will have a slightly diferent logic for rotation prediction then the one used by mtg.