parent
b6dc001cae
commit
9f9899b74f
|
@ -88,3 +88,6 @@
|
|||
[submodule "mods/items/elevator"]
|
||||
path = mods/items/elevator
|
||||
url = https://github.com/shacknetisp/elevator
|
||||
[submodule "mods/items/signs_lib"]
|
||||
path = mods/items/signs_lib
|
||||
url = https://gitlab.com/shacknetisp/signs_lib
|
||||
|
|
|
@ -19,6 +19,8 @@ item_drop.magnet_radius = 2
|
|||
item_drop.pickup_age = 1.5
|
||||
item_drop.mouse_pickup = false
|
||||
|
||||
signs_lib_standard = false
|
||||
|
||||
tsm_agnostic_dungeon.chest_node = aurum_storage:box
|
||||
|
||||
xmana.exponent = 2
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Textures made from textures from signs_lib (CC-BY-SA 4.0).
|
|
@ -0,0 +1,56 @@
|
|||
local S = aurum.get_translator()
|
||||
|
||||
b.t.merge(signs_lib.standard_wood_groups, {dig_chop = 3, dig_handle = 2, flammable = 1})
|
||||
signs_lib.standard_wood_pole_texture = minetest.registered_items["aurum_trees:oak_planks"].tiles[1]
|
||||
|
||||
local function register_tree_sign(tree)
|
||||
local tree_def = aurum.trees.types[tree]
|
||||
local planks_def = minetest.registered_nodes[tree_def.planks]
|
||||
if planks_def then
|
||||
local sign_name = ("aurum_signs:wood_sign_%s"):format(tree:gsub(":", "_"))
|
||||
signs_lib.register_sign(sign_name, {
|
||||
description = S(("%s Sign"):format(tree_def.description)),
|
||||
inventory_image = planks_def.tiles[1] .. "^aurum_signs_sign_wall_inv.png^[makealpha:255,0,255",
|
||||
tiles = {
|
||||
planks_def.tiles[1] .. "^aurum_signs_sign_wall.png^[makealpha:255,0,255",
|
||||
planks_def.tiles[1] .. "^aurum_signs_sign_wall_edges.png^[makealpha:255,0,255",
|
||||
nil, nil,
|
||||
planks_def.tiles[1],
|
||||
},
|
||||
entity_info = "standard",
|
||||
allow_hanging = true,
|
||||
allow_widefont = true,
|
||||
allow_onpole = true,
|
||||
allow_onpole_horizontal = true,
|
||||
allow_yard = true,
|
||||
use_texture_alpha = "clip",
|
||||
})
|
||||
|
||||
minetest.register_craft{
|
||||
output = sign_name .. " 4",
|
||||
recipe = {
|
||||
{tree_def.planks, tree_def.planks, tree_def.planks},
|
||||
{tree_def.planks, tree_def.planks, tree_def.planks},
|
||||
{"", "aurum_base:sticky_stick", ""},
|
||||
},
|
||||
}
|
||||
|
||||
minetest.register_craft{
|
||||
type = "fuel",
|
||||
recipe = sign_name,
|
||||
burntime = 5,
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
-- Register all once and future trees.
|
||||
for tree in pairs(aurum.trees.types) do
|
||||
register_tree_sign(tree)
|
||||
end
|
||||
|
||||
local old = aurum.trees.register
|
||||
function aurum.trees.register(name, ...)
|
||||
local ret = old(name, ...)
|
||||
register_tree_sign(name)
|
||||
return ret
|
||||
end
|
|
@ -0,0 +1,2 @@
|
|||
name = aurum_signs
|
||||
depends = aurum, signs_lib, aurum_trees
|
Binary file not shown.
After Width: | Height: | Size: 6.9 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
|
@ -0,0 +1 @@
|
|||
Subproject commit 9ab425ca34e59733c6030ea4b8c8c78fdc07daf6
|
|
@ -16,6 +16,9 @@ aurum.player.hp_max (Maximum Player HP) int 100
|
|||
# Sets the minimum delay in seconds before the player can be teleported by a portal again after a portal teleport.
|
||||
aurum.portal.min_delay (Portal Minimum Delay) int 5
|
||||
|
||||
# How long can sign text be?
|
||||
aurum.signs.max_length (Sign Maximum Length) int 512
|
||||
|
||||
# Which realm holds the default spawn point?
|
||||
aurum.spawn_realm (Default Spawn Realm) string aurum:aurum
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@ SAFE="
|
|||
mods/items/dye
|
||||
mods/items/elevator
|
||||
mods/items/gtextitems
|
||||
mods/items/signs_lib
|
||||
mods/mapgen/screalms
|
||||
mods/player/creative
|
||||
mods/player/gequip
|
||||
|
|
Loading…
Reference in New Issue