Update rocks
This commit is contained in:
@@ -24,16 +24,25 @@ local rockFactory = defaultRock:getFactory()
|
||||
---@type TileSheet
|
||||
local ts = TileSheet:new("rocks_sheet.png", 16, 16)
|
||||
|
||||
rockFactory:registerNodesByShortDef({
|
||||
{"sylite", {ts:t(0, 0)}},
|
||||
{"tauitite", {ts:t(0, 2)}},
|
||||
{"iyellite", {ts:t(0, 4)}},
|
||||
{"falmyte", {ts:t(0, 6)}},
|
||||
{"hapcoryte", {ts:t(0, 8)}},
|
||||
{"burcite", {ts:t(0, 10)}},
|
||||
{"felhor", {ts:t(0, 12)}},
|
||||
{"malachite", {ts:t(0, 14)}}
|
||||
})
|
||||
local function registerRocksTypes(postfix, x)
|
||||
rockFactory:registerNodesByShortDef({
|
||||
{"sylite"..postfix, {ts:t(x, 0)}},
|
||||
{"sylite_gray"..postfix, {ts:t(x, 1)}},
|
||||
{"sylite_black"..postfix, {ts:t(x, 2)}},
|
||||
{"tauitite_light"..postfix, {ts:t(x, 3)}},
|
||||
{"tauitite"..postfix, {ts:t(x, 4)}},
|
||||
{"iyellite"..postfix, {ts:t(x, 5)}},
|
||||
{"falmyte"..postfix, {ts:t(x, 6)}},
|
||||
{"hapcoryte"..postfix, {ts:t(x, 8)}},
|
||||
{"burcite"..postfix, {ts:t(x, 10)}},
|
||||
{"felhor"..postfix, {ts:t(x, 12)}},
|
||||
{"malachite"..postfix, {ts:t(x, 14)}}
|
||||
})
|
||||
end
|
||||
|
||||
registerRocksTypes('', 0)
|
||||
registerRocksTypes('_block', 2)
|
||||
registerRocksTypes('_bricks', 5)
|
||||
|
||||
--[[
|
||||
rockFactory:registerItems({
|
||||
|
||||
Reference in New Issue
Block a user