Mob Spawner

User avatar
Excalibur Zero
Member
 
Posts: 142
Joined: Tue Apr 02, 2013 19:45
GitHub: ExcaliburZero

Mob Spawner

by Excalibur Zero » Fri Feb 21, 2014 20:35

I have come up with a way to use the pipeworks and mesecons mods to make a machine setup that automatically spawns mobs (specifically those from the Simple Mobs mod).

Image

I have posted a video of it here: http://www.youtube.com/watch?v=5QuS3_fTtgw&feature=c4-overview&list=UUfiCyR_SLwfXes59HO6Nwzg

The setup consists of a chest connected to a filter which is connected by pipes to a deployer. The filter and deployer are connected by mesecon wiring and the wiring is powered by a blinking plant. You then place a mob summoner (see below) into the chest and it is sent to the deployer, which repeatedly deploys it, and it seems that it doesn't use up the summoner at all. You could also just use a deployer connected to a blinking plant and manually load the mob summoner in, but I didn't realize it until after a posted this thread and made the example video.

The mob summoner is created by using a code like this, but replacing the images, names of the summoner, and names of the summoned mob:

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
minetest.register_node("neoblocks:summoned", {
    description = "Summoned",
    tile_images = {"test_block.png"},
    inventory_image = "test_block.png",
    groups = {dig_immediate=3},
    on_place = function(itemstack, placer, pointed_thing)
        if pointed_thing.above then
            minetest.env:add_entity(pointed_thing.above, "neoblocks:summoned")
            itemstack:take_item()
        end
        return itemstack
    end,
})

minetest.register_abm({
    nodenames = {"neoblocks:summoned"},
    interval = 1.0,
    chance = 1,
    action = function(pos, node, active_object_count, active_object_count_wider)
        minetest.env:add_entity(pos, "neoblocks:summoned")
        minetest.env:remove_node(pos)
    end,
})


I have tried it out on a slightly larger scale, and it is quite interesting to use it to make a battle arena, but you may want to disable it whenever you're not using it so it doesn't keep spawning mobs.

Image

What do you think of it?
Last edited by Excalibur Zero on Fri Feb 21, 2014 22:43, edited 1 time in total.
 

jenova99sephiros
Member
 
Posts: 158
Joined: Sat Aug 03, 2013 15:16
In-game: Jenova

by jenova99sephiros » Sat Feb 22, 2014 01:32

Good!b
I english google translator
 

MrElmux
Member
 
Posts: 17
Joined: Sun Dec 29, 2013 09:50

by MrElmux » Sat Feb 22, 2014 08:46

Nice work but this belongs in the modding subforums
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 7 guests

cron