NamedBlocks provides block names for MCServer.
Lua
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
blocks.lua
main.lua

README.md

This plugin is a developer tool to provide block names for MCServer plugins.

How to use:

First, get a handle on NamedBlocks

PluginManager = cRoot:Get():GetPluginManager() local NamedBlocks = PluginManager:GetPlugin("NamedBlocks")

Then call the function:

local string, return = NamedBlocks:Call("GetBlockName", block, metaValue)

block and metavalue are the block id and meta id.

string is the name of the block.

return is 0 on success, 1 on non exact match and 2 on failure.