MapAPI 2021-06-15

Its an api for customs maps

  1. spaceaiDE
    Native Minecraft Version:
    1.16
    Tested Minecraft Versions:
    • 1.16
    Contributors:
    SpaceAI
    Languages Supported:
    All
    Heyho,

    I just started with the development of the MapAPI.
    With this API you have the ability to create your own customized maps.
    With this api its really easy to develop you own customized clickable maps.

    If you have any questions. Contact me on Discord SpaceAI#0001

    This is only for developers!
    The API only works on 1.16.X

    Code (Java):
    MapCreator.create()
                    .addText(new SimpleText("example", 0, 0))
                    .applyBackground(MapPalette.LIGHT_GREEN)
                    .drawRect(0, 0, 10, 10, MapPalette.DARK_GRAY)
                    .addCenteredText(10, "Example")
                    .addButton(new MapButton("Test", 2, 2, map -> {
                        // Code of the button function
                    }))
                    .addCenteredButton(1, "Example", map -> {
                        // Code of the button function
                    });

    Here you can see an example

    [​IMG]