mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-07-17 21:30:19 +02:00
Compare commits
1 Commits
2019-06-02
...
2019-05-28
Author | SHA1 | Date | |
---|---|---|---|
6c6cb347fd |
Before Width: | Height: | Size: 524 B After Width: | Height: | Size: 524 B |
@ -2,10 +2,9 @@
|
|||||||
local S = homedecor.gettext
|
local S = homedecor.gettext
|
||||||
|
|
||||||
function homedecor.toggle_switch(pos, node, clicker, itemstack, pointed_thing)
|
function homedecor.toggle_switch(pos, node, clicker, itemstack, pointed_thing)
|
||||||
if not clicker then return false end
|
if minetest.is_protected(pos, clicker:get_player_name()) then
|
||||||
local playername = clicker:get_player_name()
|
minetest.record_protection_violation(pos,
|
||||||
if minetest.is_protected(pos, playername) then
|
sender:get_player_name())
|
||||||
minetest.record_protection_violation(pos, playername)
|
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
local sep = string.find(node.name, "_o", -5)
|
local sep = string.find(node.name, "_o", -5)
|
||||||
|
@ -58,10 +58,61 @@ homedecor.register("chains", {
|
|||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
homedecor.register("torch_wall", {
|
||||||
|
description = S("Wall Torch"),
|
||||||
|
mesh = "forniture_torch.obj",
|
||||||
|
tiles = {
|
||||||
|
{
|
||||||
|
name="forniture_torch_flame.png",
|
||||||
|
animation={
|
||||||
|
type="vertical_frames",
|
||||||
|
aspect_w=40,
|
||||||
|
aspect_h=40,
|
||||||
|
length=1.0,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{ name = "homedecor_generic_metal.png", color = homedecor.color_black },
|
||||||
|
{ name = "homedecor_generic_metal.png", color = homedecor.color_med_grey },
|
||||||
|
"forniture_coal.png",
|
||||||
|
},
|
||||||
|
inventory_image="forniture_torch_inv.png",
|
||||||
|
walkable = false,
|
||||||
|
light_source = 14,
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = { -0.15, -0.45, 0.15, 0.15,0.35, 0.5 },
|
||||||
|
},
|
||||||
|
groups = {cracky=3},
|
||||||
|
})
|
||||||
|
|
||||||
|
local wl_cbox = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = { -0.2, -0.5, 0, 0.2, 0.5, 0.5 },
|
||||||
|
}
|
||||||
|
|
||||||
|
homedecor.register("wall_lamp", {
|
||||||
|
description = S("Wall Lamp"),
|
||||||
|
mesh = "homedecor_wall_lamp.obj",
|
||||||
|
tiles = {
|
||||||
|
{ name = "homedecor_generic_metal.png", color = homedecor.color_med_grey },
|
||||||
|
homedecor.lux_wood,
|
||||||
|
"homedecor_light.png",
|
||||||
|
"homedecor_generic_metal_wrought_iron.png"
|
||||||
|
},
|
||||||
|
use_texture_alpha = true,
|
||||||
|
inventory_image = "homedecor_wall_lamp_inv.png",
|
||||||
|
groups = {snappy=3},
|
||||||
|
light_source = 11,
|
||||||
|
selection_box = wl_cbox,
|
||||||
|
walkable = false
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_alias("3dforniture:bars", "homedecor:bars")
|
minetest.register_alias("3dforniture:bars", "homedecor:bars")
|
||||||
minetest.register_alias("3dforniture:L_binding_bars", "homedecor:L_binding_bars")
|
minetest.register_alias("3dforniture:L_binding_bars", "homedecor:L_binding_bars")
|
||||||
minetest.register_alias("3dforniture:chains", "homedecor:chains")
|
minetest.register_alias("3dforniture:chains", "homedecor:chains")
|
||||||
|
minetest.register_alias("3dforniture:torch_wall", "homedecor:torch_wall")
|
||||||
|
|
||||||
minetest.register_alias('bars', 'homedecor:bars')
|
minetest.register_alias('bars', 'homedecor:bars')
|
||||||
minetest.register_alias('binding_bars', 'homedecor:L_binding_bars')
|
minetest.register_alias('binding_bars', 'homedecor:L_binding_bars')
|
||||||
minetest.register_alias('chains', 'homedecor:chains')
|
minetest.register_alias('chains', 'homedecor:chains')
|
||||||
|
minetest.register_alias('torch_wall', 'homedecor:torch_wall')
|
||||||
|
@ -7,4 +7,3 @@ moreblocks?
|
|||||||
building_blocks?
|
building_blocks?
|
||||||
darkage?
|
darkage?
|
||||||
mesecons?
|
mesecons?
|
||||||
digilines?
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Before Width: | Height: | Size: 450 B After Width: | Height: | Size: 450 B |
Before Width: | Height: | Size: 594 B After Width: | Height: | Size: 594 B |
Reference in New Issue
Block a user