Trees update
This commit is contained in:
@@ -75,3 +75,13 @@ core.register_on_player_receive_fields(function(player, formname, fields)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
core.register_on_joinplayer(function(player, last_login)
|
||||||
|
player:set_sky({
|
||||||
|
sky_color = {
|
||||||
|
day_sky = '#F1DAC0',
|
||||||
|
day_horizon = '#F1B795',
|
||||||
|
},
|
||||||
|
type = "regular",
|
||||||
|
})
|
||||||
|
end)
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
@@ -12,6 +12,7 @@ local defaultSoilDef = {
|
|||||||
tiles = {},
|
tiles = {},
|
||||||
groups = {
|
groups = {
|
||||||
dig_immediate = 2,
|
dig_immediate = 2,
|
||||||
|
soil = 1,
|
||||||
soil_fertiliry = 100, -- Soil fertility for agriculture
|
soil_fertiliry = 100, -- Soil fertility for agriculture
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -245,14 +246,10 @@ soilFactory:registerItems({
|
|||||||
---@type TileSheet
|
---@type TileSheet
|
||||||
local tsT = TileSheet:new("soils_turfs_sheet.png", 16, 16)
|
local tsT = TileSheet:new("soils_turfs_sheet.png", 16, 16)
|
||||||
|
|
||||||
Node:new({
|
defaultSoil:new({
|
||||||
settings = {
|
settings = {
|
||||||
name = 'turf_swamp',
|
name = 'turf_swamp',
|
||||||
tiles = {tsT:t(0,0), ts:t(6, 0), ts:t(6,0)..'^'..tsT:t(0,1)},
|
tiles = {tsT:t(0,0), ts:t(6, 0), ts:t(6,0)..'^'..tsT:t(0,1)},
|
||||||
groups = {
|
|
||||||
dig_immediate = 2,
|
|
||||||
soil_fertiliry = 100, -- Soil fertility for agriculture
|
|
||||||
},
|
|
||||||
_rarity = 'unique'
|
_rarity = 'unique'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -11,9 +11,9 @@ local defaultLogDef = {
|
|||||||
tiles = {},
|
tiles = {},
|
||||||
groups = {
|
groups = {
|
||||||
dig_immediate = 2,
|
dig_immediate = 2,
|
||||||
|
wood = 1
|
||||||
},
|
},
|
||||||
paramtype2 = 'facedir',
|
}
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
---@type Node.NodeDefinition
|
---@type Node.NodeDefinition
|
||||||
@@ -68,16 +68,77 @@ local function registerWood(name, x)
|
|||||||
defaultLog:new({
|
defaultLog:new({
|
||||||
settings = {
|
settings = {
|
||||||
name = name..'_log',
|
name = name..'_log',
|
||||||
tiles = getLogTiles(x, 1)
|
tiles = getLogTiles(x, 1),
|
||||||
|
paramtype2 = 'facedir',
|
||||||
},
|
},
|
||||||
|
callbacks = {
|
||||||
|
on_place = core.rotate_node
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
defaultLog:new({
|
defaultLog:new({
|
||||||
settings = {
|
settings = {
|
||||||
name = name..'_trunk',
|
name = name..'_trunk',
|
||||||
|
tiles = {logTileSheet:t(x, 2)},
|
||||||
|
inventory_overlay = 'wood_trunk_overlay.png',
|
||||||
|
drop = 'wood:'..name..'_log',
|
||||||
|
paramtype2 = 'facedir',
|
||||||
|
},
|
||||||
|
callbacks = {
|
||||||
|
on_place = core.rotate_node
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
defaultLog:new({
|
||||||
|
settings = {
|
||||||
|
name = name..'_trunk_vertical',
|
||||||
tiles = getLogTiles(x, 1),
|
tiles = getLogTiles(x, 1),
|
||||||
inventory_overlay = 'wood_trunk_overlay.png',
|
inventory_overlay = 'wood_trunk_overlay.png',
|
||||||
drop = 'wood:'..name..'_log'
|
drop = 'wood:'..name..'_log',
|
||||||
|
paramtype2 = 'facedir',
|
||||||
|
},
|
||||||
|
callbacks = {
|
||||||
|
on_place = core.rotate_node
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
defaultLog:new({
|
||||||
|
settings = {
|
||||||
|
drawtype = 'nodebox',
|
||||||
|
name = name..'_trunk_branch',
|
||||||
|
tiles = {logTileSheet:t(x, 2)},
|
||||||
|
inventory_overlay = 'wood_trunk_overlay.png',
|
||||||
|
drop = 'wood:'..name..'_log',
|
||||||
|
paramtype = 'light',
|
||||||
|
node_box = {
|
||||||
|
type = 'connected',
|
||||||
|
fixed = {-.25,-.25,-.25, .25,.25,.25},
|
||||||
|
connect_top = {-.25,-.25,-.25, .25,.5,.25},
|
||||||
|
connect_bottom = {-.25,-.5,-.25, .25,.25,.25},
|
||||||
|
connect_front = {-.25,-.25,-.5, .25,.25,.25},
|
||||||
|
connect_left = {-.5,-.25,-.25, .25,.25,.25},
|
||||||
|
connect_back = {-.25,-.25,-.25, .25,.25,.5},
|
||||||
|
connect_right = {-.25,-.25,-.25, .5,.25,.25},
|
||||||
|
},
|
||||||
|
connects_to = {'group:wood', 'group:soil'}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
defaultLog:new({
|
||||||
|
settings = {
|
||||||
|
drawtype = 'nodebox',
|
||||||
|
name = name..'_trunk_branch_vertical',
|
||||||
|
tiles = getLogTiles(x, 1),
|
||||||
|
inventory_overlay = 'wood_trunk_overlay.png',
|
||||||
|
drop = 'wood:'..name..'_log',
|
||||||
|
paramtype = 'light',
|
||||||
|
node_box = {
|
||||||
|
type = 'connected',
|
||||||
|
fixed = {-.25,-.25,-.25, .25,.25,.25},
|
||||||
|
connect_top = {-.25,-.25,-.25, .25,.5,.25},
|
||||||
|
connect_bottom = {-.25,-.5,-.25, .25,.25,.25},
|
||||||
|
},
|
||||||
|
connects_to = {'group:wood', 'group:soil'}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 122 KiB |
Reference in New Issue
Block a user