Mob activation?

Mob activation?

Postby Jumbo101 » June 1st, 2015, 2:38 pm

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?
Image

Hi there!
User avatar
Jumbo101
Code: Awesome

 
Posts: 253
Joined: August 22nd, 2014, 6:02 pm
Location: World 1-1

SM63 Level Designer Contest Winner
LDC #32: Nature(Green) vs. Civilization(Red)

Thumbs Up given: 4 times
Thumbs Up received: 17 times

Re: Mob activation?

Postby Zunar » June 1st, 2015, 2:47 pm

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.
User avatar
Zunar
Honorary Member

 
Posts: 1838
Joined: August 1st, 2009, 4:50 pm
Location: In the shadows, where you'll never find me.

Thumbs Up given: 14 times
Thumbs Up received: 51 times

Re: Mob activation?

Postby Kimonio » June 1st, 2015, 7:55 pm

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.
Image

User avatar
Kimonio
Honorary Member

 
Posts: 2114
Joined: September 27th, 2009, 11:06 am
Location: In the absence of nothing

Thumbs Up given: 62 times
Thumbs Up received: 135 times

Re: Mob activation?

Postby Jumbo101 » June 2nd, 2015, 3:15 am

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? :|
Image

Hi there!
User avatar
Jumbo101
Code: Awesome

 
Posts: 253
Joined: August 22nd, 2014, 6:02 pm
Location: World 1-1

SM63 Level Designer Contest Winner
LDC #32: Nature(Green) vs. Civilization(Red)

Thumbs Up given: 4 times
Thumbs Up received: 17 times

Re: Mob activation?

Postby Kimonio » June 2nd, 2015, 8:13 am

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.
Image

User avatar
Kimonio
Honorary Member

 
Posts: 2114
Joined: September 27th, 2009, 11:06 am
Location: In the absence of nothing

Thumbs Up given: 62 times
Thumbs Up received: 135 times


Return to Minecraft