11:42:11: ERROR[main]: ========== ERROR FROM LUA ===========
11:42:11: ERROR[main]: Failed to load and run script from
11:42:11: ERROR[main]: L:\Minetest\minetest - Copie\bin\..\mods\fertiliser\init.lua:
11:42:11: ERROR[main]: ...inetest\minetest - Copie\bin\..\mods\fertiliser\init.lua:26: unexpected symbol near '<'
11:42:11: ERROR[main]: ======= END OF ERROR FROM LUA ========
<<<<<<< HEAD
=======
>>>>>>> origin/master
23:47:55: ERROR[main]: ServerError: ...etest\bin\..\mods\farming_plusplus\farming_plus\init.lua:56: attempt to perform arithmetic on field 'y' (a nil value)
23:47:55: ERROR[main]: stack traceback:
23:47:55: ERROR[main]: ...etest\bin\..\mods\farming_plusplus\farming_plus\init.lua:56: in function 'generate_tree'
23:47:55: ERROR[main]: L:\Minetest\minetest\bin\..\mods\fertiliser\init.lua:6: in function <L:\Minetest\minetest\bin\..\mods\fertiliser\init.lua:4>
23:47:55: ERROR[main]: L:\Minetest\minetest\bin\..\mods\fertiliser\init.lua:164: in function <L:\Minetest\minetest\bin\..\mods\fertiliser\init.lua:154>
farming:generate_tree(pos, def[4][1], def[4][2], def[4][3], def[4][4])
farming.generate_tree(pos, def[4][1], def[4][2], def[4][3], def[4][4])
MTDad wrote: How do you get bones:bones anyways? I resorted to a giveme.
Esteban wrote:MTDad wrote: How do you get bones:bones anyways? I resorted to a giveme.
The bones in the default game are obtained when you die. In vanilla Minetest, when you die, your items are left inside the bones in the exact position where you died.
minermoder27 wrote:...
Craft 1 bone block to make 9 bones.
craft 8 dirt with 1 bone in the center to make 9 fertiliser.
...
minetest.register_craft({
output = 'fertiliser:fertiliser 9',
recipe = {
{'default:dirt', 'default:dirt', 'default:dirt'},
{'default:dirt', 'bones:single_bone', 'default:dirt'},
{'default:dirt', 'default:dirt', 'default:dirt'},
},
})
minetest.register_craft({
output = 'bones:bones',
recipe = {
{'bones:single_bone', 'bones:single_bone', 'bones:single_bone'},
{'bones:single_bone', 'bones:single_bone', 'bones:single_bone'},
{'bones:single_bone', 'bones:single_bone', 'bones:single_bone'},
},
})
minetest.register_craft({
type = 'shapeless',
output = 'bones:single_bone 9',
recipe = {'bones:bones'},
})
MTDad wrote:balthazariv, it comes down to a ":" vs a "."
line 6 of the fertiliser/init.luaYour phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
farming:generate_tree(pos, def[4][1], def[4][2], def[4][3], def[4][4])
change it toYour phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
farming.generate_tree(pos, def[4][1], def[4][2], def[4][3], def[4][4])
and it works.
MTDad wrote:[...] but it didn't work on moretrees or jungle trees for me. No crash, just no fertiliser application (no removal from the stack).
MTDad wrote:How do you get bones:bones anyways? I resorted to a giveme.
MTDad wrote:I'm not sure about the recipe [...]
{'', 'group:leaves', ''},
{'group:leaves', 'default:apple', 'group:leaves'},
{'default:dirt', 'default:dirt', 'default:dirt'},
--[[ remove bones if player emptied them
if has_space then
minetest.remove_node(pos)
end]]
end,
--[[on_metadata_inventory_take = function(pos, listname, index, stack, player)
local meta = minetest.get_meta(pos)
if meta:get_inventory():is_empty("main") then
minetest.remove_node(pos)
end
end,]]
MTDad wrote:balthazariv, it comes down to a ":" vs a "."
line 6 of the fertiliser/init.luaYour phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
farming:generate_tree(pos, def[4][1], def[4][2], def[4][3], def[4][4])
change it toYour phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
farming.generate_tree(pos, def[4][1], def[4][2], def[4][3], def[4][4])
and it works.
Do that and it will no longer work for older versions of farming/farming_plus that used the ":" version.
Xanthin wrote:MTDad wrote:I'm not sure about the recipe [...]
Yes, I also changed the recipe, not only because of the limitation in singleplayer to get the bones, just don´t like the idea to use bones for food :) I prefere a compost withYour phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode..
- Code: Select all
{'', 'group:leaves', ''},
{'group:leaves', 'default:apple', 'group:leaves'},
{'default:dirt', 'default:dirt', 'default:dirt'},
Damien wrote:Also,what about the bone block?In the vanilla game it isn't obtainable if not through commands and creative,is it available in this or the farming_plus modification?
Xanthin wrote:MTDad wrote:[...] but it didn't work on moretrees or jungle trees for me. No crash, just no fertiliser application (no removal from the stack).
Seems like the support for jungle trees and the moretrees mod was removed from the mod with the latest update.
Users browsing this forum: No registered users and 7 guests