[Mod] Mushroom mod

Matsetes
Member
 
Posts: 70
Joined: Tue Sep 11, 2012 23:36

[Mod] Mushroom mod

by Matsetes » Sat Apr 13, 2013 15:42

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 ========
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

by Sokomine » Sat Apr 13, 2013 15:50

There's the riesenpilz/giant mushroom mod already. Perhaps that does part of what you want already?
A list of my mods can be found here.
 

Matsetes
Member
 
Posts: 70
Joined: Tue Sep 11, 2012 23:36

by Matsetes » Sat Apr 13, 2013 15:58

The mod is quite different, cause my mushrooms are not big, they are little as flowers...
 

User avatar
Topywo
Member
 
Posts: 1718
Joined: Fri May 18, 2012 20:27

by Topywo » Sat Apr 13, 2013 17:30

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,"
 

Matsetes
Member
 
Posts: 70
Joined: Tue Sep 11, 2012 23:36

by Matsetes » Sat Apr 13, 2013 18:39

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 ========
 

Josh
Member
 
Posts: 1146
Joined: Fri Jun 29, 2012 23:11

by Josh » Sun Apr 14, 2013 03:09

 

User avatar
Bas080
Member
 
Posts: 398
Joined: Mon May 21, 2012 15:54
GitHub: bas080
IRC: bas080
In-game: bas080

by Bas080 » Thu Apr 18, 2013 10:22

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.
 

Matsetes
Member
 
Posts: 70
Joined: Tue Sep 11, 2012 23:36

by Matsetes » Sat Apr 20, 2013 08:33

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
 

User avatar
Bas080
Member
 
Posts: 398
Joined: Mon May 21, 2012 15:54
GitHub: bas080
IRC: bas080
In-game: bas080

by Bas080 » Tue Apr 23, 2013 19:52

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!
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 9 guests

cron