So I've been working on a dungeon for my server for a few weeks now. I got a lot of the more basic things set up but I've reached a point where I am beyond my limit of knowledge and seek the aid of more capable individuals.
I have a small room where I want a series of events to take place.
1: Player enters room, exits close (this i can do with cloneing an area)
2: 4 higher level mobs spawn in cells and attack player (referencing the attached picture)
3: once the 4 mobs are killed, the exits reopen
I am sure this has been done many times by others, but I just do not even know what to search for to find it. Any help is greatly appreciated in advance.
Thank you,
OutcastZeroOne
ATTACHMENTS
2016-08-15_11.56.45
Rollback Post to RevisionRollBack
^^___________________Click the banner to check us out!___________________^^
thanks for the reply. sadly I had already started to work on this project with my limited knowledge of command blocks and am unsure of how to incorperate your suggestions into my set up.
Now, I am sure there is far better ways to do what I did in 1.9.4, and I am open to cleaning up this set up. so I will now give a detailed list of what I came up with and some reasoning why i did it.
Image 1:
A command block detects the player in the hall outside the room, turning on 2 other player detecting command blocks
image 2:
these 2 command blocks have a detection area that over lap and feed into an "AND" switch. the combination of these 3 command blocks make it so the system only activates as a player walks into the room. all 3 use the "testfor @p" function with cords
from here the doors are also closed using 2 command blocks that clone a wall into place, with a 3rd placing a redstone torch to activate the next set (seen in image 4)
image 3:
this shows the areas where 4 customized hostiles are spawned in. "summon mobs"
image 4:
going back to the placed torch, 2 command blocks are activated, one looking for the custom mob, the other looking for the player. Both using "testfor" to search. Once the mobs are detected an second repeater is activated to lock out the repeater leading to the spawning of the mobs to prevent more being spawned in.
I set these up with an inverting redstone torch signal so that once they no longer detect the mobs or the player (either by death or managed to leave the room) the 2 command blacks will place a torch on the green area.
imgae 5:
this last set will delete the torch over the mob/player room detectors and open the doors. "set block air" and "clone" commands
Sorry if any of that is confusing, and I sure there are better ways to set these up. Again, I did this with what I do know of command blocks and their functions. If anyone has questions or sugestions to streamline things, please feel free offer them.
So i redid my system and got it much cleaner and compact and more 1.9ish. works great in my test world.
uploaded to my server and everything works great, except one thing. I have a command to kill off the special mobs:
/kill @e[type=Skeleton,name=CryptWarrior]
but its not working. the mobs are not killed. I have no idea whats going on. its a bukit server on 1.9 but I dont know why it wouldnt work on there. anyone have any ideas?
ATTACHMENTS
2016-08-28_15.18.45
Rollback Post to RevisionRollBack
^^___________________Click the banner to check us out!___________________^^
So i redid my system and got it much cleaner and compact and more 1.9ish. works great in my test world.
uploaded to my server and everything works great, except one thing. I have a command to kill off the special mobs:
/kill @e[type=Skeleton,name=CryptWarrior]
but its not working. the mobs are not killed. I have no idea whats going on. its a bukit server on 1.9 but I dont know why it wouldnt work on there. anyone have any ideas?
Cool, still pretty redstone-heavy. But if it works, great!
Some commands, e. g: /kill or /tp are overwritten by plugins such as Essentials. That means that they will only work with players, nut with entity-selectors. The way to fix this is to use the vanilla command by adding a "minecraft:"
So I've been working on a dungeon for my server for a few weeks now. I got a lot of the more basic things set up but I've reached a point where I am beyond my limit of knowledge and seek the aid of more capable individuals.
I have a small room where I want a series of events to take place.
1: Player enters room, exits close (this i can do with cloneing an area)
2: 4 higher level mobs spawn in cells and attack player (referencing the attached picture)
3: once the 4 mobs are killed, the exits reopen
I am sure this has been done many times by others, but I just do not even know what to search for to find it. Any help is greatly appreciated in advance.
Thank you,
OutcastZeroOne
^^___________________Click the banner to check us out!___________________^^
Ill even be glad if someone just simply gives me a hint on what to search for.
^^___________________Click the banner to check us out!___________________^^
1a; Place a repeating command block to execute all players inside the dungeon to activate an impulse command block.
1b; Add a chain of commandblocks to the impulse command block. Either clone in the closed doors or fill them with blocks
2; Add command blocks to summon the mobs.
3; In this command chain, activate another repeating command block that tests the zombies
Add two chain cmdblocks to this one.
The second one is conditional and activates another chain, starting with an impulse command block.
This last chain reopens the doors with either cloning the empty doorspace to the doors or filling them with air.
My projects: https://blockbench.net/hub
Jannis
thanks for the reply. sadly I had already started to work on this project with my limited knowledge of command blocks and am unsure of how to incorperate your suggestions into my set up.
Now, I am sure there is far better ways to do what I did in 1.9.4, and I am open to cleaning up this set up. so I will now give a detailed list of what I came up with and some reasoning why i did it.
Image 1:
A command block detects the player in the hall outside the room, turning on 2 other player detecting command blocks
image 2:
these 2 command blocks have a detection area that over lap and feed into an "AND" switch. the combination of these 3 command blocks make it so the system only activates as a player walks into the room. all 3 use the "testfor @p" function with cords
from here the doors are also closed using 2 command blocks that clone a wall into place, with a 3rd placing a redstone torch to activate the next set (seen in image 4)
image 3:
this shows the areas where 4 customized hostiles are spawned in. "summon mobs"
image 4:
going back to the placed torch, 2 command blocks are activated, one looking for the custom mob, the other looking for the player. Both using "testfor" to search. Once the mobs are detected an second repeater is activated to lock out the repeater leading to the spawning of the mobs to prevent more being spawned in.
I set these up with an inverting redstone torch signal so that once they no longer detect the mobs or the player (either by death or managed to leave the room) the 2 command blacks will place a torch on the green area.
imgae 5:
this last set will delete the torch over the mob/player room detectors and open the doors. "set block air" and "clone" commands
Sorry if any of that is confusing, and I sure there are better ways to set these up. Again, I did this with what I do know of command blocks and their functions. If anyone has questions or sugestions to streamline things, please feel free offer them.
and yes, I know I am a n00b with command blocks.
^^___________________Click the banner to check us out!___________________^^
So i redid my system and got it much cleaner and compact and more 1.9ish. works great in my test world.
uploaded to my server and everything works great, except one thing. I have a command to kill off the special mobs:
/kill @e[type=Skeleton,name=CryptWarrior]
but its not working. the mobs are not killed. I have no idea whats going on. its a bukit server on 1.9 but I dont know why it wouldnt work on there. anyone have any ideas?
^^___________________Click the banner to check us out!___________________^^
Cool, still pretty redstone-heavy. But if it works, great!
Some commands, e. g: /kill or /tp are overwritten by plugins such as Essentials. That means that they will only work with players, nut with entity-selectors. The way to fix this is to use the vanilla command by adding a "minecraft:"
This should work.
My projects: https://blockbench.net/hub
sweet! that did it! thanks again Jannis!
^^___________________Click the banner to check us out!___________________^^