blob: 07a1f7773b14fd4b2edbb7c74b3814d7b3efe0fe (
plain) (
tree)
|
|
local function GetBlockInfo(blockPos)
print("Request data for "..blockPos)
local bi = BlockInfo.new()
bi.collides = true
bi.blockstate = ""
bi.variant = ""
return bi
end
local function RegisterBlocks()
AC.RegisterBlock(BlockId.new(1,0), true, "stone", "normal")
AC.RegisterBlock(BlockId.new(2,0), true, "grass", "snowy=false")
AC.RegisterBlock(BlockId.new(3,0), true, "dirt", "normal")
AC.RegisterBlock(BlockId.new(31,1), false, "tall_grass", "normal")
end
return {
GetBlockInfo = GetBlockInfo,
RegisterBlocks = RegisterBlocks,
}
|