45 lines
1.6 KiB
Lua
45 lines
1.6 KiB
Lua
minetest.register_on_joinplayer(function(player)
|
|
minetest.after(0, player.hud_set_hotbar_itemcount, player, 16)
|
|
minetest.after(0, player.hud_set_hotbar_image, player, "gui_hotbar_16.png")
|
|
end)
|
|
|
|
if minetest.get_modpath("beds") ~= nil then
|
|
minetest.unregister_item("beds:fancy_bed")
|
|
minetest.clear_craft({ output = "beds:bed_bottom" })
|
|
minetest.register_craft({
|
|
output = "beds:bed",
|
|
recipe = {
|
|
{"wool:green", "wool:green", "wool:white"},
|
|
{"group:wood", "group:wood", "group:wood"},
|
|
},
|
|
})
|
|
end
|
|
|
|
if minetest.get_modpath("herbs") ~= nil then minetest.unregister_item("herbs:cactus_tincture") end
|
|
|
|
if minetest.get_modpath("anvil") ~= nil then
|
|
minetest.clear_craft({ output = "anvil:anvil" })
|
|
minetest.register_craft({
|
|
output = "anvil:anvil",
|
|
recipe = {
|
|
{"default:steelblock","default:steelblock","default:steelblock"},
|
|
{'', "default:steel_ingot",'' },
|
|
{"default:steel_ingot","default:steel_ingot","default:steel_ingot"} },
|
|
})
|
|
anvil.setting.item_displacement = 14/16
|
|
end
|
|
|
|
minetest.override_item("default:glass", {
|
|
drawtype = "glasslike_framed",
|
|
tiles = {"default_glass.png", "default_glass_detail.png^default_glass.png"},
|
|
inventory_image = minetest.inventorycube("default_glass.png"),
|
|
use_texture_alpha = true,
|
|
})
|
|
|
|
minetest.override_item("default:obsidian_glass", {
|
|
drawtype = "glasslike_framed",
|
|
tiles = {"default_obsidian_glass.png", "default_obsidian_glass_detail.png^default_obsidian_glass.png"},
|
|
inventory_image = minetest.inventorycube("default_obsidian_glass.png"),
|
|
use_texture_alpha = true,
|
|
})
|