Page 1 of 1

[Mod] Mob Spawn Eggs [1.1] [spawneggs]

PostPosted: Sat Jun 08, 2013 20:55
by thefamilygrog66
Mob Spawn Eggs (spawneggs) mod for Minetest


by thefamilygrog66

Description:
This mod randomly spawns "spawning eggs", which when combined with various materials, will become mob spawning eggs (compatible only with PilzAdam's Simple Mobs mod). When the player places one of these, the corresponding mob will appear.

If the player prefers to create a health item instead of a mob, they can simply cook the spawning egg, which will produce a FRIED EGG that can be eaten to regain hearts.


Recipes:

Your 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
Dirt Monster
+---------------+---------------+
| spawning egg  |     dirt      |
+---------------+---------------+

Dungeon Master
+---------------+---------------+
| spawning egg  |     mese      |
+---------------+---------------+

Oerkki
+---------------+---------------+
| spawning egg  |   obsidian    |
+---------------+---------------+

Rat
+---------------+---------------+
| spawning egg  |     rat       |
+---------------+---------------+

Sand Monster
+---------------+---------------+
| spawning egg  |     sand      |
+---------------+---------------+

Sheep
+---------------+---------------+
| spawning egg  |  white wool   |
+---------------+---------------+

Stone Monster
+---------------+---------------+
| spawning egg  |     stone     |
+---------------+---------------+

Tree Monster
+---------------+---------------+
| spawning egg  |    sapling    |
+---------------+---------------+

Fried Egg
- cook spawning egg


Mod dependencies: default, mobs, wool

License:
Sourcecode: WTFPL (see below)
Graphics: WTFPL (see below)

Download: https://github.com/thefamilygrog66/spawneggs/archive/master.zip

Browse Code on GitHub: https://github.com/thefamilygrog66/spawneggs/

Screenshots:

Image
Spawning Egg

Image
Inventory loaded with spawn eggs, about to place Spawn Oerkki egg

Image
Right after Spawn Oerkki egg is placed

Image
I just cooked me up a mess of fried eggs - yummy!

PostPosted: Sat Jun 08, 2013 23:48
by JBR
Nice mod, but I commented out the part that makes an egg appear randomly because the original technically already does that. +1

PostPosted: Sat Jun 08, 2013 23:54
by cornellius
wow nice but make the craft not cheap maybe u can add mese or diamonds

Edit 1 :how to craft egg?

PostPosted: Sat Jun 08, 2013 23:55
by JBR
cornellius wrote:wow nice but make the craft not cheap maybe u can add mese or diamonds

Yeah. Because you could place one in someones house and if it only costs one dirt then you might not want to open your door..

PostPosted: Sun Jun 09, 2013 00:00
by cornellius
JBR wrote:
cornellius wrote:wow nice but make the craft not cheap maybe u can add mese or diamonds

Yeah. Because you could place one in someones house and if it only costs one dirt then you might not want to open your door..


how to craft the spawn eggs?

PostPosted: Sun Jun 09, 2013 00:03
by Mossmanikin
I like this mod.
Nice how the textures of spawn eggs fit to the corresponding mobs.

PostPosted: Sun Jun 09, 2013 00:06
by JBR
cornellius wrote:
JBR wrote:
cornellius wrote:wow nice but make the craft not cheap maybe u can add mese or diamonds

Yeah. Because you could place one in someones house and if it only costs one dirt then you might not want to open your door..


how to craft the spawn eggs?


Maybe

"" "default:dirt" ""
"default:dirt" "default:mese" "default:dirt"
"default:diamond""default:dirt""default:diamond"

Edit: Wait are you are you talking about currently? If so it's one dirt.

PostPosted: Sun Jun 09, 2013 02:55
by thefamilygrog66
JBR wrote:Nice mod, but I commented out the part that makes an egg appear randomly because the original technically already does that. +1


Thanks - could you elaborate a bit on why you commented out the random egg spawning? I'm not quite sure what you mean about the "original technically" doing that.

cornellius wrote:wow nice but make the craft not cheap maybe u can add mese or diamonds

Edit 1 :how to craft egg?


Thank you. Dungeon Masters require mese blocks, but server owners can easily change the recipes in the first few lines of the init.lua file. The spawning egg doesn't have a recipe - it just randomly spawns (technically, it randomly replaces short grass).

Mossmanikin wrote:I like this mod.
Nice how the textures of spawn eggs fit to the corresponding mobs.


Glad you dig it - I figured it made the most sense to match the textures.

PostPosted: Sun Jun 09, 2013 10:29
by JBR
thefamilygrog66 wrote:
JBR wrote:Nice mod, but I commented out the part that makes an egg appear randomly because the original technically already does that. +1


Thanks - could you elaborate a bit on why you commented out the random egg spawning? I'm not quite sure what you mean about the "original technically" doing that.


Because it already spawns monsters and I don't think I want it to spawn eggs aswell. Anyway that's just personal preference and how I want it for my game. Still good mod.

PostPosted: Sun Jun 09, 2013 15:45
by thefamilygrog66
JBR wrote:
thefamilygrog66 wrote:
JBR wrote:Nice mod, but I commented out the part that makes an egg appear randomly because the original technically already does that. +1


Thanks - could you elaborate a bit on why you commented out the random egg spawning? I'm not quite sure what you mean about the "original technically" doing that.


Because it already spawns monsters and I don't think I want it to spawn eggs aswell. Anyway that's just personal preference and how I want it for my game. Still good mod.


Ah cool, I understand what you're saying now. In that case, the owner/admin would have to /give playername spawneggs:egg since they won't spawn naturally, unless you're playing in creative mode. I really like that Minetest modding makes it easy to tweak things to suit personal preferences - I know I've done that with almost every mod I have running! :)

PostPosted: Sun Jun 09, 2013 16:22
by JBR
thefamilygrog66 wrote:
JBR wrote:
thefamilygrog66 wrote:
Thanks - could you elaborate a bit on why you commented out the random egg spawning? I'm not quite sure what you mean about the "original technically" doing that.


Because it already spawns monsters and I don't think I want it to spawn eggs aswell. Anyway that's just personal preference and how I want it for my game. Still good mod.


Ah cool, I understand what you're saying now. In that case, the owner/admin would have to /give playername spawneggs:egg since they won't spawn naturally, unless you're playing in creative mode. I really like that Minetest modding makes it easy to tweak things to suit personal preferences - I know I've done that with almost every mod I have running! :)

Yeah :)

PostPosted: Sat Aug 03, 2013 23:06
by tnt2001breese@gmail.com
i try to esrtact it but it does not work

PostPosted: Sun Aug 04, 2013 22:51
by Topywo
tnt2001breese@gmail.com wrote:i try to esrtact it but it does not work


Your question is very general.

Does there occur an error while extracting, does the extracting work well, but you get an error creating a new world or you can play a game but can't find/use spawneggs?

General info:
- Maybe this helps you: https://forum.minetest.net/viewtopic.php?id=6450
- Spawneggs depends on the simple mobs mod from PilzAdam. You need to install that mod too https://forum.minetest.net/viewtopic.php?id=3063
- Use a newer or latest minetest build
- Exit minetest, look for a file called debug.txt and delete it, start minetest and create a world (with spawneggs enabled), wait for the error, exit minetest, open the (new) debug.txt file, copy the ERRORS lines and paste them here.

PostPosted: Fri Aug 30, 2013 00:35
by BrunoMine
Could you show me the commands to give each of the eggs?
I want many.

PostPosted: Fri Aug 30, 2013 18:05
by thefamilygrog66
brunob.santos wrote:Could you show me the commands to give each of the eggs?
I want many.


Sure, here you go:

/giveme spawneggs:egg 99
/giveme spawneggs:dirt_monster 99
/giveme spawneggs:dungeon_master 99
/giveme spawneggs:oerkki 99
/giveme spawneggs:rat 99
/giveme spawneggs:sand_monster 99
/giveme spawneggs:sheep 99
/giveme spawneggs:stone_monster 99
/giveme spawneggs:tree_monster 99


Of course, you can change the 99 to whatever number of that item you'd like.

PostPosted: Sat Aug 31, 2013 02:53
by BrunoMine
thefamilygrog66 wrote:
brunob.santos wrote:Could you show me the commands to give each of the eggs?
I want many.


Sure, here you go:

/giveme spawneggs:egg 99
/giveme spawneggs:dirt_monster 99
/giveme spawneggs:dungeon_master 99
/giveme spawneggs:oerkki 99
/giveme spawneggs:rat 99
/giveme spawneggs:sand_monster 99
/giveme spawneggs:sheep 99
/giveme spawneggs:stone_monster 99
/giveme spawneggs:tree_monster 99


Of course, you can change the 99 to whatever number of that item you'd like.


Thank you! Solved!

PostPosted: Mon Sep 09, 2013 20:11
by thefamilygrog66
Version 1.1 is now available for download:

- made spawning eggs much easier to break now

- added a "de-spawning" function to prevent too many eggs from overtaking the landscape

- now includes FRIED EGGS - simply cook a spawning egg and you can eat the resulting fried egg to regain hearts

Image

PostPosted: Tue Sep 10, 2013 15:24
by Rhys
Nice one! It saves doing /spawnentity blah blah blah. Also, this is a great idea! Makes me feel RIGHT at home. :)