BlockType constants?
#1
Hi,

Suppose the following function:
function OnPlayerPlacingBlock(Player, BlockX, BlockY, BlockZ, BlockType, BlockMeta)

Is there any way to do something like this?
if BlockType == BLOCKTYPE_CHEST then
    -- Do something
end

It's because I don't like the ideia of determining the BlockType by experimental ways, are there any constants like these? I couldn't find any.
Reply
Thanks given by:
#2
in page: http://mc-server.xoft.cz/LuaAPI/Globals.html#constants search for E_BLOCK_
Reply
Thanks given by:
#3
And if you really had to, you could also use the block ID from a list in a pinch.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)