Page 1 of 1

[Mod] Mushroom mod

PostPosted: Sat Apr 13, 2013 15:42
by Matsetes
I'm trying to make a mod that spawns mushroom as in Minecraft, maybe for using it in MiniTest
The code is here: http://pastebin.com/bDJ37zZb
The error given:

========== ERROR FROM LUA ===========
ERROR[main]: Failed to load and run script from
ERROR[main]: /home/matsetes/File/Games/Minetest/minetest-minetest-0.4.6/bin/../worlds/Prove mod/worldmods/mushrooms/init.lua:
ERROR[main]: ...test-minetest-0.4.6/bin/../worlds/Prove mod/worldmods/mushrooms/init.lua:2: '}' expected (to close '{' at line 1) near 'mushroom'
=======END OF ERROR FROM LUA ========

PostPosted: Sat Apr 13, 2013 15:50
by Sokomine
There's the riesenpilz/giant mushroom mod already. Perhaps that does part of what you want already?

PostPosted: Sat Apr 13, 2013 15:58
by Matsetes
The mod is quite different, cause my mushrooms are not big, they are little as flowers...

PostPosted: Sat Apr 13, 2013 17:30
by Topywo
Matsetes wrote:I'm trying to make a mod that spawns mushroom as in Minecraft, maybe for using it in MiniTest
The code is here: http://pastebin.com/bDJ37zZb
The error given:

========== ERROR FROM LUA ===========
ERROR[main]: Failed to load and run script from
ERROR[main]: /home/matsetes/File/Games/Minetest/minetest-minetest-0.4.6/bin/../worlds/Prove mod/worldmods/mushrooms/init.lua:
ERROR[main]: ...test-minetest-0.4.6/bin/../worlds/Prove mod/worldmods/mushrooms/init.lua:2: '}' expected (to close '{' at line 1) near 'mushroom'
=======END OF ERROR FROM LUA ========



I didn't try it, but maybe you need to add the " around the mushrooms in your description.

line 2: description = Red mushroom, --> description = "Red mushroom,"
line 17: description = Brown mushroom, --> description = "Brown mushroom,"

PostPosted: Sat Apr 13, 2013 18:39
by Matsetes
Ok, now the problem is:

========== ERROR FROM LUA ===========
Failed to load and run script from
/home/matsetes/File/Games/Minetest/minetest-minetest-0.4.6/bin/../worlds/Prove mod/worldmods/mushrooms/init.lua:
...bin/../worlds/Prove mod/worldmods/mushrooms/init.lua:31: attempt to index global 'mushroom' (a nil value)
stack traceback:
...bin/../worlds/Prove mod/worldmods/mushrooms/init.lua:31: in main chunk
=======END OF ERROR FROM LUA ========

PostPosted: Sun Apr 14, 2013 03:09
by Josh

PostPosted: Thu Apr 18, 2013 10:22
by Bas080
Plants mod has mushrooms including the MC style mushrooms. Check out the screenshots.

It uses habitat mod to spawn nodes. Another way of spawning plants is to use plants_lib.

PostPosted: Sat Apr 20, 2013 08:33
by Matsetes
Bas080 wrote:Plants mod has mushrooms including the MC style mushrooms. Check out the screenshots.

It uses habitat mod to spawn nodes. Another way of spawning plants is to use plants_lib.


Ok, sorry, I stop doing this

PostPosted: Tue Apr 23, 2013 19:52
by Bas080
Matsetes, don't be. You can always make an only mushrooms mod. I know that in minecraft you can make soup using brown and red mushrooms. You can make a mod where you have those mushrooms and can craft a nice soup. In that case i would use plants_lib to get the mushrooms spawning in a certain area.

I would love to see a mod that depends on my plants mod. It's completely up to you!