diff --git a/mods/GAME/ITEMS/rocks/init.lua b/mods/GAME/ITEMS/rocks/init.lua index d3a382c..91707ae 100644 --- a/mods/GAME/ITEMS/rocks/init.lua +++ b/mods/GAME/ITEMS/rocks/init.lua @@ -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({ diff --git a/mods/GAME/ITEMS/rocks/textures/sheets/rocks_sheet.png b/mods/GAME/ITEMS/rocks/textures/sheets/rocks_sheet.png index eecada2..bbaa4ac 100644 Binary files a/mods/GAME/ITEMS/rocks/textures/sheets/rocks_sheet.png and b/mods/GAME/ITEMS/rocks/textures/sheets/rocks_sheet.png differ