fixes
|
@ -136,7 +136,7 @@ minetest.register_node("anvil:anvil", {
|
|||
description = S("Anvil"),
|
||||
_doc_items_longdesc = S("A tool for repairing other tools in conjunction with a blacksmith's hammer."),
|
||||
_doc_items_usagehelp = S("Right-click on this anvil with a damaged tool to place the damaged tool upon it. You can then repair the damaged tool by striking it with a blacksmith's hammer. Repeated blows may be necessary to fully repair a badly worn tool. To retrieve the tool either punch or right-click the anvil with an empty hand."),
|
||||
tiles = {"default_stone.png"},
|
||||
tiles = {"default_obsidian.png^[colorize:#FFFFFF:72"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky=2},
|
||||
|
@ -193,7 +193,7 @@ minetest.register_node("anvil:anvil", {
|
|||
minetest.chat_send_player( player:get_player_name(), S('This anvil is for damaged tools only.'))
|
||||
return 0
|
||||
end
|
||||
|
||||
|
||||
if (minetest.get_item_group(stack:get_name(), "not_repaired_by_anvil") ~= 0) then
|
||||
local item_def = minetest.registered_items[stack:get_name()]
|
||||
minetest.chat_send_player( player:get_player_name(), S('@1 cannot be repaired with an anvil.', item_def.description))
|
||||
|
|
|
@ -14,6 +14,9 @@ local creative_mode = minetest.settings:get_bool("creative_mode")
|
|||
--survival
|
||||
if not creative_mode then
|
||||
function minetest.handle_node_drops(pos, drops, digger)
|
||||
if not(digger) or not(digger:is_player()) then
|
||||
return
|
||||
end
|
||||
local meta = digger:get_wielded_item():get_meta()
|
||||
local slippery = meta:get_int("slippery")
|
||||
local careful = meta:get_int("careful")
|
||||
|
|
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 77 KiB |
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 99 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 74 KiB |
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 55 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 55 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 112 KiB |
Before Width: | Height: | Size: 253 KiB After Width: | Height: | Size: 225 KiB |
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 104 KiB After Width: | Height: | Size: 91 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 28 KiB |
|
@ -20,8 +20,6 @@ minetest.register_entity("petz:"..pet_name,{
|
|||
bottled = "petz:bottle_moth",
|
||||
max_height = 3,
|
||||
spawn_at_night = true,
|
||||
die_at_daylight = true,
|
||||
max_daylight_level = 8,
|
||||
has_affinity = false,
|
||||
is_wild = false,
|
||||
give_orders = false,
|
||||
|
|
|
@ -443,6 +443,7 @@ for i = 1, #petz.settings["petz_list"] do --load the settings
|
|||
petz.settings[petz_type.."_convert_to"] = user:get(petz_type.."_convert_to", nil) or settings:get(petz_type.."_convert_to", nil)
|
||||
petz.settings[petz_type.."_convert_count"] = tonumber(user:get(petz_type.."_convert_count") or settings:get(petz_type.."_convert_count")) or nil
|
||||
petz.settings[petz_type.."_lifetime"] = tonumber(user:get(petz_type.."_lifetime") or settings:get(petz_type.."_lifetime")) or nil
|
||||
petz.settings[petz_type.."_disable_spawn"] = tonumber(user:get(petz_type.."_disable_spawn") or settings:get(petz_type.."_disable_spawn")) or false
|
||||
if petz_type == "beaver" then
|
||||
petz.settings[petz_type.."_create_dam"] = user:get_bool(petz_type.."_create_dam", false) or settings:get_bool(petz_type.."_create_dam", false)
|
||||
elseif petz_type == "silkworm" then
|
||||
|
|
Before Width: | Height: | Size: 570 B After Width: | Height: | Size: 544 B |
Before Width: | Height: | Size: 637 B After Width: | Height: | Size: 544 B |
Before Width: | Height: | Size: 732 B After Width: | Height: | Size: 594 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 940 B After Width: | Height: | Size: 639 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 937 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 582 B After Width: | Height: | Size: 529 B |
Before Width: | Height: | Size: 693 B After Width: | Height: | Size: 641 B |
Before Width: | Height: | Size: 728 B After Width: | Height: | Size: 648 B |
Before Width: | Height: | Size: 856 B After Width: | Height: | Size: 648 B |
Before Width: | Height: | Size: 799 B After Width: | Height: | Size: 674 B |
Before Width: | Height: | Size: 801 B After Width: | Height: | Size: 651 B |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 957 B After Width: | Height: | Size: 864 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 739 B After Width: | Height: | Size: 618 B |
Before Width: | Height: | Size: 909 B After Width: | Height: | Size: 650 B |
Before Width: | Height: | Size: 933 B After Width: | Height: | Size: 671 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1007 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 839 B After Width: | Height: | Size: 656 B |
Before Width: | Height: | Size: 517 B After Width: | Height: | Size: 487 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 692 B After Width: | Height: | Size: 631 B |
Before Width: | Height: | Size: 869 B After Width: | Height: | Size: 623 B |
Before Width: | Height: | Size: 475 B After Width: | Height: | Size: 449 B |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 503 B After Width: | Height: | Size: 489 B |
Before Width: | Height: | Size: 921 B After Width: | Height: | Size: 775 B |
Before Width: | Height: | Size: 519 B After Width: | Height: | Size: 517 B |
Before Width: | Height: | Size: 718 B After Width: | Height: | Size: 599 B |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 582 B After Width: | Height: | Size: 488 B |
Before Width: | Height: | Size: 600 B After Width: | Height: | Size: 507 B |
Before Width: | Height: | Size: 589 B After Width: | Height: | Size: 517 B |
Before Width: | Height: | Size: 1017 B After Width: | Height: | Size: 838 B |
Before Width: | Height: | Size: 600 B After Width: | Height: | Size: 507 B |
Before Width: | Height: | Size: 802 B After Width: | Height: | Size: 656 B |
Before Width: | Height: | Size: 594 B After Width: | Height: | Size: 555 B |
Before Width: | Height: | Size: 646 B After Width: | Height: | Size: 551 B |
Before Width: | Height: | Size: 684 B After Width: | Height: | Size: 570 B |
Before Width: | Height: | Size: 862 B After Width: | Height: | Size: 859 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 755 B After Width: | Height: | Size: 556 B |
Before Width: | Height: | Size: 763 B After Width: | Height: | Size: 562 B |
Before Width: | Height: | Size: 742 B After Width: | Height: | Size: 559 B |
Before Width: | Height: | Size: 756 B After Width: | Height: | Size: 559 B |
Before Width: | Height: | Size: 726 B After Width: | Height: | Size: 559 B |
Before Width: | Height: | Size: 741 B After Width: | Height: | Size: 559 B |
Before Width: | Height: | Size: 648 B After Width: | Height: | Size: 559 B |
Before Width: | Height: | Size: 747 B After Width: | Height: | Size: 569 B |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 890 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1023 B |
Before Width: | Height: | Size: 969 B After Width: | Height: | Size: 800 B |