[books] Books Mod
-
- Member
- Posts: 570
- Joined: Fri Feb 17, 2012 21:55
- Location: Canada
Yeah, you can edit. Look in the "actionbar" beneath a post, to the right, and you should see Edit on your own. :-)
We are what we create.
I tinker and occasionally make (lousy) mods. Currently building an MMO subgame and updating mods. Pirate Party of Canada member. Sporadic author. 21 years old.
My github:
https://github.com/tinoesroho/
I tinker and occasionally make (lousy) mods. Currently building an MMO subgame and updating mods. Pirate Party of Canada member. Sporadic author. 21 years old.
My github:
https://github.com/tinoesroho/
-
- Member
- Posts: 55
- Joined: Wed Oct 01, 2014 11:58
Re: [books] Books Mod
10:47:21: ERROR[main]: ========== ERROR FROM LUA ===========
10:47:21: ERROR[main]: Failed to load and run script from
10:47:21: ERROR[main]: C:\Users\gamergardencat\Desktop\Workbench\MinetestMain\minetest-0.4.10-64bit\bin\..\mods\books\init.lua:
10:47:21: ERROR[main]: ...estMain\minetest-0.4.10-64bit\bin\..\mods\books\init.lua:121: unexpected symbol near 'then'
Lines 117-130
Misplaced then?
minetest.register_on_punchnode looks like old api. Or maybe not. http://dev.minetest.net/minetest.register_on_punchnode
10:47:21: ERROR[main]: Failed to load and run script from
10:47:21: ERROR[main]: C:\Users\gamergardencat\Desktop\Workbench\MinetestMain\minetest-0.4.10-64bit\bin\..\mods\books\init.lua:
10:47:21: ERROR[main]: ...estMain\minetest-0.4.10-64bit\bin\..\mods\books\init.lua:121: unexpected symbol near 'then'
Lines 117-130
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,
})
minetest.register_on_punchnode looks like old api. Or maybe not. http://dev.minetest.net/minetest.register_on_punchnode
superman slices a giant apple into 3 and hands it to guest220
-
- Member
- Posts: 55
- Joined: Wed Oct 01, 2014 11:58
Re: [books] Books Mod
Replacement code.
I don't see how to write in it.
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)
I don't see how to write in it.
superman slices a giant apple into 3 and hands it to guest220
Re: [books] Books Mod
i cant start a new line i press shift+(a specific key) to write | but is not working.beside that the mod is amazing!
-
- Member
- Posts: 570
- Joined: Fri Feb 17, 2012 21:55
- Location: Canada
Re: [books] Books Mod
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.
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.
Re: [books] Books Mod
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.
Who is online
Users browsing this forum: No registered users and 37 guests