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:


Messages In This Thread
BlockType constants? - by Nixtren - 06-21-2015, 11:22 PM
RE: BlockType constants? - by warmist - 06-21-2015, 11:24 PM
RE: BlockType constants? - by DiamondToaster - 06-22-2015, 12:37 AM



Users browsing this thread: 1 Guest(s)