2 Commits

Author SHA1 Message Date
966af2328a Update rocks 2026-01-22 19:26:48 +03:00
d08ee33400 Add water flowing texture 2026-01-22 17:34:59 +03:00
5 changed files with 22 additions and 13 deletions

View File

@@ -66,10 +66,10 @@ liquidFactory:registerItems({
settings = { settings = {
name = "liquids:water_flowing", name = "liquids:water_flowing",
drawtype = "flowingliquid", drawtype = "flowingliquid",
tiles = {"default_water.png"}, tiles = {"liquids_water.png"},
special_tiles = { special_tiles = {
{ {
name = "default_water_flowing_animated.png", name = "liquids_water_flowing.png",
backface_culling = false, backface_culling = false,
animation = { animation = {
type = "vertical_frames", type = "vertical_frames",
@@ -79,7 +79,7 @@ liquidFactory:registerItems({
}, },
}, },
{ {
name = "default_water_flowing_animated.png", name = "liquids_water_flowing.png",
backface_culling = true, backface_culling = true,
animation = { animation = {
type = "vertical_frames", type = "vertical_frames",

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -24,16 +24,25 @@ local rockFactory = defaultRock:getFactory()
---@type TileSheet ---@type TileSheet
local ts = TileSheet:new("rocks_sheet.png", 16, 16) local ts = TileSheet:new("rocks_sheet.png", 16, 16)
rockFactory:registerNodesByShortDef({ local function registerRocksTypes(postfix, x)
{"sylite", {ts:t(0, 0)}}, rockFactory:registerNodesByShortDef({
{"tauitite", {ts:t(0, 2)}}, {"sylite"..postfix, {ts:t(x, 0)}},
{"iyellite", {ts:t(0, 4)}}, {"sylite_gray"..postfix, {ts:t(x, 1)}},
{"falmyte", {ts:t(0, 6)}}, {"sylite_black"..postfix, {ts:t(x, 2)}},
{"hapcoryte", {ts:t(0, 8)}}, {"tauitite_light"..postfix, {ts:t(x, 3)}},
{"burcite", {ts:t(0, 10)}}, {"tauitite"..postfix, {ts:t(x, 4)}},
{"felhor", {ts:t(0, 12)}}, {"iyellite"..postfix, {ts:t(x, 5)}},
{"malachite", {ts:t(0, 14)}} {"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({ rockFactory:registerItems({

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 106 KiB