Page 1 of 1

Mob activation?

PostPosted: June 1st, 2015, 2:38 pm
by Jumbo101
Greetings!

I figured out how to
make my own custom
Mobs and I was wondering...

When you kill the custom mob,
is there anyway you can make it
activate something?

For instance: You defeat a evil wizard
and when you kill the wizard, there is
a door at the end of the room and it opens
once you defeat the mob.

Is there anyway I could do it
with command blocks maybe?

Re: Mob activation?

PostPosted: June 1st, 2015, 2:47 pm
by Zunar
I'm sure it's possible. With command block heavy maps like Diversity and Terra Restore, I'm convinced anything is possible. Unfortunately I don't know much about command blocks and I don't know if anyone on this site does. Ask around on minecraftforum.net, you will likely have better results there.

Re: Mob activation?

PostPosted: June 1st, 2015, 7:55 pm
by Kimonio
Depends on what actions you need, really.

/d MOBNAME @a[score_health=0] on a clock, then /setblock item_name x y z set to a comparator to detect when the clock gives the signal upon death, to place the block.

However, I think doors may be one of those entity-like blocks, so it's pretty finicky. I've seen things done using scoreboards, though, so it may be possible. Perhaps an armor stand two blocks low wearing a door as a helmet with barrier blocks acting as the door closed by using a /setblock and detection clock hooked to the mob detector, then when mob is dead, have the armor stand pivot and move to look like the door opened, where th e detection clock will then replace the barrier blocks with air.

Re: Mob activation?

PostPosted: June 2nd, 2015, 3:15 am
by Jumbo101
Kimonio wrote:Depends on what actions you need, really.

/d MOBNAME @a[score_health=0] on a clock, then /setblock item_name x y z set to a comparator to detect when the clock gives the signal upon death, to place the block.

However, I think doors may be one of those entity-like blocks, so it's pretty finicky. I've seen things done using scoreboards, though, so it may be possible. Perhaps an armor stand two blocks low wearing a door as a helmet with barrier blocks acting as the door closed by using a /setblock and detection clock hooked to the mob detector, then when mob is dead, have the armor stand pivot and move to look like the door opened, where th e detection clock will then replace the barrier blocks with air.


Well, is there any command you could give me for it? :|

Re: Mob activation?

PostPosted: June 2nd, 2015, 8:13 am
by Kimonio
Commands are dependent on what version you use and what your mobID is.

/setblock will handle block placement server-side.
/scoreboard handles how scoreboards work.
/testfor looks for entities fitting specific rules.
/summon Will spawn or place an enemy based on what specifics you wish for it to have.

You can also code your mob to summon or place a door in a dungeon/room if it's a mod, if that's your intention, and code it to only open upon the mod's death. That's if you don't want a lot of dirty redstone.

I don't do much with commandblocks, I'm(I was) more of a creative builder than a redstoner.

Sounds to me, though, that you want to use setblock, summon, testfor, and scoreboard.