forked from mtcontrib/homedecor_modpack
Compare commits
7 Commits
df9e8aea4b
...
2021-02-25
Author | SHA1 | Date | |
---|---|---|---|
cc0887cfb4 | |||
968d706e9b | |||
bc55cde65c | |||
e049380408 | |||
e57c4a55e6 | |||
e73b4affe7 | |||
62cdcc5795 |
@ -27,7 +27,7 @@ for _, c in ipairs(bookcolors) do
|
||||
local color, hue = unpack(c)
|
||||
|
||||
local function book_dig(pos, node, digger)
|
||||
if minetest.is_protected(pos, digger:get_player_name()) then return end
|
||||
if not digger or minetest.is_protected(pos, digger:get_player_name()) then return end
|
||||
local meta = minetest.get_meta(pos)
|
||||
local data = minetest.serialize({
|
||||
title = meta:get_string("title") or "",
|
||||
|
@ -1,3 +1,4 @@
|
||||
name = homedecor_books
|
||||
description = Homedecor mod: books
|
||||
depends = homedecor_common, default, unifieddyes, creative
|
||||
depends = homedecor_common, default, creative
|
||||
optional_depends = unifieddyes
|
||||
|
@ -141,9 +141,9 @@ function homedecor.handle_inventory(name, def, original_def)
|
||||
stack:get_count()
|
||||
end
|
||||
|
||||
local can_dig = def.can_dig
|
||||
local can_dig = def.can_dig or default_can_dig
|
||||
def.can_dig = function(pos, player)
|
||||
return default.can_interact_with_node(player, pos) and (can_dig and (can_dig(pos, player) or true))
|
||||
return default.can_interact_with_node(player, pos) and (can_dig and can_dig(pos, player) == true)
|
||||
end
|
||||
|
||||
def.on_key_use = function(pos, player)
|
||||
|
@ -7,14 +7,14 @@ Barbecue=Barbacoa
|
||||
Doghouse=Casa de perros
|
||||
Garden Lattice (@1)=Enrejado de jardín (@1)
|
||||
Garden stone path=Camino de piedra de jardín
|
||||
No room in your inventory to add a filled bucket!=
|
||||
No room under there to hang a swing.=
|
||||
No room in your inventory to add a filled bucket!=No hay espacio en tu inv para el cubo
|
||||
No room under there to hang a swing.=No hay espacio para colgar el columpio
|
||||
Shrubbery (@1)=Arbustos (@1)
|
||||
Shrubbery (large, @1)=Arbustos (@1)
|
||||
Tree's swing=Columpio
|
||||
Water well=Pozo de agua
|
||||
|
||||
You have to point at the bottom side of an overhanging object to place a swing.=
|
||||
You have to point at the bottom side of an overhanging object to place a swing.=Debe ser la parte inferior de un objeto para colocar el columpio.
|
||||
|
||||
green=verde
|
||||
red=roja
|
||||
|
@ -162,7 +162,10 @@ if minetest.get_modpath("digilines") then
|
||||
if puncher:get_player_control().sneak then
|
||||
local name = puncher:get_player_name()
|
||||
player_last_clicked[name] = pos
|
||||
local form = "field[channel;Channel;]"
|
||||
local form = "formspec_version[4]"..
|
||||
"size[8,4]"..
|
||||
"button_exit[3,2.5;2,0.5;proceed;Proceed]"..
|
||||
"field[1.75,1.5;4.5,0.5;channel;Channel;]"
|
||||
minetest.show_formspec(name, "homedecor:lamp_set_channel", form)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user