Skip to content

v2.0.0

Latest

Choose a tag to compare

@PetarMc1 PetarMc1 released this 22 Nov 17:26
· 10 commits to master since this release
2646a2d

Changes made:

  • Switch from Next.JS API router to Express
  • API endpoints start with /v1, maybe there will be v2 馃憖
  • Local data folder is no longer used, everything is fetched from minecraft-data
  • Removed src/Data

New Endpoints

/v1/showNames/[category]/[version]

  • Shows all names of the specified category* and version.
    The category can be items/blocks/biomes or effects

/v1/verInfo/[version]

  • Displays info about the specified version

/v1/map/[version]/[category]

  • Retrieve a mapping of IDs to names and names to IDs for the specified category and Minecraft version.
Click to expand to see example output
{
	"air": 0,
	"stone": 1,
	"granite": 2,
	"polished_granite": 3,
	"diorite": 4,
	"polished_diorite": 5,
	"andesite": 6,
	"polished_andesite": 7,
	"deepslate": 8,
	"cobbled_deepslate": 9,
	"polished_deepslate": 10,
	"calcite": 11,
	"tuff": 12,
	"tuff_slab": 13,
	"tuff_stairs": 14,
	"tuff_wall": 15
}

/v1/count/[version]

  • Returns how many entries exist in each category for the specified Minecraft version
Click to expand to see example output
{
  "blocks": 1060,
  "biomes": 0,
  "items": 1333,
  "effects": 0
}

/v1/search/[version]/[query]

  • Returns how many entries exist in each category for the specified Minecraft version
Click to expand to see example output
{
	"blocks": 1060,
	"biomes": 0,
	"items": 1333,
	"effects": 0
}