[Mod] Fertiliser [0.1.6] [fertiliser]
- minermoder27
- Member
- Posts: 138
- Joined: Wed Nov 20, 2013 23:24
- GitHub: ZNixian
- In-game: minermoder27
[Mod] Fertiliser [0.1.6] [fertiliser]
Fertiliser mod for minetest.
punch anything from farming plus and farming or punch cactus and papyrus to grow it 1 "level". Trees take a few clicks, but will grow (Trees will never have apples).
Crafting
L = Leaves
A = Apple
D = Dirt
. = nothing
. L .
L A L
D D D
or (on older versions)
Craft 1 bone block to make 9 bones.
craft 8 dirt with 1 bone in the center to make 9 fertiliser.
Compadibility
Moretrees trees
Farming Plus trees
Vanilla cacti/papyrus
Vanilla pine and oak trees
Vanilla wheat/cotton
Downloads
Github: https://github.com/minermoder27/minetest-fertiliser
Download: https://github.com/minermoder27/minetes ... master.zip
Depends
default
farming (comes by default)
farming_plus
LICENCE
Apache License
CREDITS
MTDad - debugging on newer versions of Minetest
Esteban - new crafting recipie
punch anything from farming plus and farming or punch cactus and papyrus to grow it 1 "level". Trees take a few clicks, but will grow (Trees will never have apples).
Crafting
L = Leaves
A = Apple
D = Dirt
. = nothing
. L .
L A L
D D D
or (on older versions)
Craft 1 bone block to make 9 bones.
craft 8 dirt with 1 bone in the center to make 9 fertiliser.
Compadibility
Moretrees trees
Farming Plus trees
Vanilla cacti/papyrus
Vanilla pine and oak trees
Vanilla wheat/cotton
Downloads
Github: https://github.com/minermoder27/minetest-fertiliser
Download: https://github.com/minermoder27/minetes ... master.zip
Depends
default
farming (comes by default)
farming_plus
LICENCE
Apache License
CREDITS
MTDad - debugging on newer versions of Minetest
Esteban - new crafting recipie
Last edited by minermoder27 on Sun Jun 14, 2015 02:47, edited 4 times in total.
My best mods:
Buildtest
Buildtest
- balthazariv
- Member
- Posts: 214
- Joined: Mon Apr 07, 2014 15:48
- Contact:
Re: [Mod] Fertiliser [0.1] [fertiliser]
Hello,
I have this error
I have this error
Code: Select all
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 ========
-
- Member
- Posts: 126
- Joined: Fri Mar 07, 2014 14:05
- GitHub: Xanthin
- IRC: Xanthin
- In-game: Xanthin
- Location: Germany
Re: [Mod] Fertiliser [0.1] [fertiliser]
Interesting, faster grow of plants and trees :)
I tested it and deleted this three lines in the init.lua:
Now it works but not for jungletrees. With jungletree saplings I get an error about "deprecated use of default.grow_jungletree".
I havent tested it yet with moretrees.
I tested it and deleted this three lines in the init.lua:
Code: Select all
<<<<<<< HEAD
=======
>>>>>>> origin/master
I havent tested it yet with moretrees.
- balthazariv
- Member
- Posts: 214
- Joined: Mon Apr 07, 2014 15:48
- Contact:
Re: [Mod] Fertiliser [0.1] [fertiliser]
Hello, i deleted this three lines but it not works.
No item in my inventory (in creative mode) and when i want to craft
"Craft 1 bone block to make 9 bones.
craft 8 dirt with 1 bone in the center to make 9 fertiliser"
i have no item for fertiliser and no bones
No item in my inventory (in creative mode) and when i want to craft
"Craft 1 bone block to make 9 bones.
craft 8 dirt with 1 bone in the center to make 9 fertiliser"
i have no item for fertiliser and no bones
-
- Member
- Posts: 126
- Joined: Fri Mar 07, 2014 14:05
- GitHub: Xanthin
- IRC: Xanthin
- In-game: Xanthin
- Location: Germany
Re: [Mod] Fertiliser [0.1] [fertiliser]
Yes, I got this too at my first try. The mod has a hard dependency on farming_plus and only works if you enable it too.
Funny: you can use the fertiliser on papyrus to grow it on every soil (dirt, sand, stone) no matter how near to water and as high as you want. If you add "climbable = true," to papyrus you can play "Jack and the papyrusstalk". :)
Funny: you can use the fertiliser on papyrus to grow it on every soil (dirt, sand, stone) no matter how near to water and as high as you want. If you add "climbable = true," to papyrus you can play "Jack and the papyrusstalk". :)
- minermoder27
- Member
- Posts: 138
- Joined: Wed Nov 20, 2013 23:24
- GitHub: ZNixian
- In-game: minermoder27
Re: [Mod] Fertiliser [0.1] [fertiliser]
Sorry about three lines, it was a problem with my use of git.
This is now fixed.
This is now fixed.
- balthazariv
- Member
- Posts: 214
- Joined: Mon Apr 07, 2014 15:48
- Contact:
Re: [Mod] Fertiliser [0.1] [fertiliser]
Hello,
I Have this error with your mod and [Modpack] [farming_plusplus][1.03] farming_plus fork
I Have this error with your mod and [Modpack] [farming_plusplus][1.03] farming_plus fork
Code: Select all
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>
Re: [Mod] Fertiliser [0.1] [fertiliser]
balthazariv, it comes down to a ":" vs a "."
line 6 of the fertiliser/init.lua
change it to
and it works.
Do that and it will no longer work for older versions of farming/farming_plus that used the ":" version.
Fun little mod to play with, but it didn't work on moretrees or jungle trees for me. No crash, just no fertiliser application (no removal from the stack). I'm not sure about the recipe, I'd think about changing it to bones from the animals mod and tree leaves or something renewable like that. How do you get bones:bones anyways? I resorted to a giveme.
line 6 of the fertiliser/init.lua
Code: Select all
farming:generate_tree(pos, def[4][1], def[4][2], def[4][3], def[4][4])
Code: Select all
farming.generate_tree(pos, def[4][1], def[4][2], def[4][3], def[4][4])
Do that and it will no longer work for older versions of farming/farming_plus that used the ":" version.
Fun little mod to play with, but it didn't work on moretrees or jungle trees for me. No crash, just no fertiliser application (no removal from the stack). I'm not sure about the recipe, I'd think about changing it to bones from the animals mod and tree leaves or something renewable like that. How do you get bones:bones anyways? I resorted to a giveme.
Re: [Mod] Fertiliser [0.1] [fertiliser]
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.MTDad wrote: How do you get bones:bones anyways? I resorted to a giveme.
Scan avatar or click here to read a Message of Hope (PDF)
Re: [Mod] Fertiliser [0.1] [fertiliser]
Right, but that doesn't give you a bones item you can use to craft the small bones this mod uses, at least it doesn't for me.Esteban wrote: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.MTDad wrote: How do you get bones:bones anyways? I resorted to a giveme.
Re: [Mod] Fertiliser [0.1] [fertiliser]
I took a look at the code to see if there was a mistake:minermoder27 wrote:...
Craft 1 bone block to make 9 bones.
craft 8 dirt with 1 bone in the center to make 9 fertiliser.
...
Code: Select all
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'},
})
Scan avatar or click here to read a Message of Hope (PDF)
- balthazariv
- Member
- Posts: 214
- Joined: Mon Apr 07, 2014 15:48
- Contact:
Re: [Mod] Fertiliser [0.1] [fertiliser]
Thanks now it worksMTDad wrote:balthazariv, it comes down to a ":" vs a "."
line 6 of the fertiliser/init.luachange it toCode: Select all
farming:generate_tree(pos, def[4][1], def[4][2], def[4][3], def[4][4])
and it works.Code: Select all
farming.generate_tree(pos, def[4][1], def[4][2], def[4][3], def[4][4])
-
- Member
- Posts: 126
- Joined: Fri Mar 07, 2014 14:05
- GitHub: Xanthin
- IRC: Xanthin
- In-game: Xanthin
- Location: Germany
Re: [Mod] Fertiliser [0.1] [fertiliser]
Seems like the support for jungle trees and the moretrees mod was removed from the mod with the latest update.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).
Like Esteban said, but in singleplayer you don´t get bones when your character dies.MTDad wrote:How do you get bones:bones anyways? I resorted to a giveme.
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 withMTDad wrote:I'm not sure about the recipe [...]
Code: Select all
{'', 'group:leaves', ''},
{'group:leaves', 'default:apple', 'group:leaves'},
{'default:dirt', 'default:dirt', 'default:dirt'},
And thank you for your fix.
Re: [Mod] Fertiliser [0.1] [fertiliser]
This is all very puzzling to me, maybe something's changed in bones recently, or my version of minetest or bones doesn't work right. Singleplayer or Server (we have a family server we play together on), if you die, yes bones appear on the map, where you died, containing your items. When you collect those bones, you get no bones as an item in your inventory, you get your items. Oh well.
-
- Member
- Posts: 126
- Joined: Fri Mar 07, 2014 14:05
- GitHub: Xanthin
- IRC: Xanthin
- In-game: Xanthin
- Location: Germany
Re: [Mod] Fertiliser [0.1] [fertiliser]
Geez! How silly, of course there are bones even in singleplayer. I am so used to have creative mod on when I use the singleplayer. Should have looked into the bones file before. Excuse me.
Now I saw what you mean and found that there was this commit for the bones mod in minetest_game.
I commented lines 80-82. Now, if you punch at the bones you instantely get all your items back in your inventory and the bones stay, so you can pick them up.
But if you take item per item out of the bones they still dissapear. I commented lines 52-57 and they stay.
Oh, and maybe you want to look at this removed line. I dont no why it was removed, it seems to me practical to get a chat message with the coordinates where you died.
Now I saw what you mean and found that there was this commit for the bones mod in minetest_game.
I commented lines 80-82. Now, if you punch at the bones you instantely get all your items back in your inventory and the bones stay, so you can pick them up.
Code: Select all
--[[ remove bones if player emptied them
if has_space then
minetest.remove_node(pos)
end]]
end,
Code: Select all
--[[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,]]
- minermoder27
- Member
- Posts: 138
- Joined: Wed Nov 20, 2013 23:24
- GitHub: ZNixian
- In-game: minermoder27
Re: [Mod] Fertiliser [0.1] [fertiliser]
IDK why they got rid of it. Will have to look into a workaround for the bones.
Re: [Mod] Fertiliser [0.1] [fertiliser]
Sorry for the necro bump,I meant to ask:
Does this fertiliser also enchance the growth of grass and flowers?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?
Does this fertiliser also enchance the growth of grass and flowers?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?
- minermoder27
- Member
- Posts: 138
- Joined: Wed Nov 20, 2013 23:24
- GitHub: ZNixian
- In-game: minermoder27
Re: [Mod] Fertiliser [0.1] [fertiliser]
Fixed.MTDad wrote:balthazariv, it comes down to a ":" vs a "."
line 6 of the fertiliser/init.luachange it toCode: Select all
farming:generate_tree(pos, def[4][1], def[4][2], def[4][3], def[4][4])
and it works.Code: Select all
farming.generate_tree(pos, def[4][1], def[4][2], def[4][3], def[4][4])
Do that and it will no longer work for older versions of farming/farming_plus that used the ":" version.
Xanthin wrote: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 withMTDad wrote:I'm not sure about the recipe [...].Code: Select all
{'', 'group:leaves', ''}, {'group:leaves', 'default:apple', 'group:leaves'}, {'default:dirt', 'default:dirt', 'default:dirt'},
Added Xanthin's craft recipie by default, because of the new bone logic.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?
- minermoder27
- Member
- Posts: 138
- Joined: Wed Nov 20, 2013 23:24
- GitHub: ZNixian
- In-game: minermoder27
Re: [Mod] Fertiliser [0.1] [fertiliser]
Moretrees support has been re-added in the latest version.Xanthin wrote:Seems like the support for jungle trees and the moretrees mod was removed from the mod with the latest update.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).
The reason why I removed it to start with was that there are no hooks in plant_life that support growing of trees. This meant that I wrote my own hooks, but then there were updates, and so it got ugly. It now scans through minetest.registered_abms to find the functions it needs.
-
- Member
- Posts: 845
- Joined: Fri Jan 08, 2016 21:17
- In-game: Ghost
Re: [Mod] Fertiliser [0.1.6] [fertiliser]
this mod is now knackered
it depends on farming plus and plant lib
since farming plus breaks default farming
rip one of my favourite mods
it depends on farming plus and plant lib
since farming plus breaks default farming
rip one of my favourite mods
- minermoder27
- Member
- Posts: 138
- Joined: Wed Nov 20, 2013 23:24
- GitHub: ZNixian
- In-game: minermoder27
Re: [Mod] Fertiliser [0.1.6] [fertiliser]
As in, this or farming plus? If this:Chibi ghost wrote:rip one of my favourite mods
Wow, I had no idea anyone ever used this. I can fix it up to work with the default mods if you'd like.
I haven't done Minetest in ages, does plantlib still exist?
-
- Member
- Posts: 845
- Joined: Fri Jan 08, 2016 21:17
- In-game: Ghost
Re: [Mod] Fertiliser [0.1.6] [fertiliser]
both fertilliser was one of the first mods I ever installed and had work with no issuesminermoder27 wrote:As in, this or farming plus? If this:Chibi ghost wrote:rip one of my favourite mods
Wow, I had no idea anyone ever used this. I can fix it up to work with the default mods if you'd like.
I haven't done Minetest in ages, does plantlib still exist?
and plant lib is a part of vanessa's plant mod
also RIP me as I'm going to install bone meal, remove my armour and spend a hour throwing my self off my house
- minermoder27
- Member
- Posts: 138
- Joined: Wed Nov 20, 2013 23:24
- GitHub: ZNixian
- In-game: minermoder27
Re: [Mod] Fertiliser [0.1.6] [fertiliser]
Is that another fertilizer-style mod?Chibi ghost wrote:I'm going to install bone meal, remove my armour and spend a hour throwing my self off my house
-
- Member
- Posts: 845
- Joined: Fri Jan 08, 2016 21:17
- In-game: Ghost
Re: [Mod] Fertiliser [0.1.6] [fertiliser]
yes I've never used it before so I don't know fully all the ins and outs of this modminermoder27 wrote:Is that another fertilizer-style mod?Chibi ghost wrote:I'm going to install bone meal, remove my armour and spend a hour throwing my self off my house
- minermoder27
- Member
- Posts: 138
- Joined: Wed Nov 20, 2013 23:24
- GitHub: ZNixian
- In-game: minermoder27
Re: [Mod] Fertiliser [0.1.6] [fertiliser]
Well, I'll have a look at updating it sometime tomorrow, then.
Who is online
Users browsing this forum: No registered users and 16 guests