SmylerMC / litemapy

Litemapy's goal is to provide an easy to use way to read and edit Litematica's schematic file format
GNU General Public License v3.0
51 stars 5 forks source link

Make regions more pythonic #42

Closed SmylerMC closed 3 months ago

SmylerMC commented 8 months ago

Implement "pythonic" features for regions.

E.g.

region = Region(0, 0, 0, 10, 10, 10)
stone = BlockState("minecraft:stone")
region[0, 0, 0] = stone  # Array-like region access
stone in region  # True
region.replace(AIR, stone)