Posted: Mon Sep 30, 2013 13:03
Yeah, you can edit. Look in the "actionbar" beneath a post, to the right, and you should see Edit on your own. :-)
Code: Select all
minetest.register_on_punchnode(function(pos, node, puncher)
if node.name == "default:bookshelf" then
hit_with = puncher:get_wielded_item()
if hit_with_name == "books:pencil" then
then
local meta = minetest.env:get_meta(pointed_thing.under)
meta:set_string("formspec", get_write_formspec(meta))
meta:set_string("infotext", "Bookshelf (editable)")
itemstack:add_wear(65535/50)
return itemstack
end
end,
})
Code: Select all
minetest.register_on_punchnode(function(pos, node, puncher, pointed_thing)
if puncher:get_wielded_item():get_name() == "default:bookshelf"
then
hit_with = puncher:get_wielded_item()
if hit_with_name == "books:pencil"
then
local meta = minetest.env:get_meta(pointed_thing.under)
meta:set_string("formspec", get_write_formspec(meta))
meta:set_string("infotext", "Bookshelf (editable)")
itemstack:add_wear(65535/50)
return itemstack
end
end
end)
thank you really much!tinoesroho wrote:Hi!
Sorry to hear that it's broken. I don't maintain this mod, but you should check out it's modern successor: Bookex. Kaeza includes it as part of his mods collection - you can download it all as a zip, here.