summaryrefslogtreecommitdiffstats
path: root/cwd/assets/altcraft/scripts/blocks.lua
blob: 07a1f7773b14fd4b2edbb7c74b3814d7b3efe0fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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,
}