A Minecraft mod made to access world data from an API
- Start Minecraft with the mod
- Load into a world
- API opens on port: 8080
-
Block - specific block at x, y, z
- Example:
http://localhost:8080/world/block?x=1&y=56&z=3will outputminecraft:stone
- Example:
-
Slab - 3D area with start x,y,z and end x,y,z
-
End coordinates > Start coordinates
-
If a block is air, it won't send
minecraft:air -
If one of the blocks is outside the buildable world, it won't respond for that block
- Example:
http://localhost:8080/world/slab?xStart=0&yStart=40&zStart=0&xEnd=1&yEnd=42&zEnd=1
Output:0,40,0,minecraft:stone 1,40,0,minecraft:stone 1,40,1,minecraft:stone 1,41,1,minecraft:stone 1,42,1,minecraft:water
- Example:
-
- Add block setting function
- Make "Slab" coordinates work even if End < Start
- Make the "Slab" response more efficient