Not sure if this goes here or in server discussions, but...
I'm building a server that's heavily story-based, and I had an idea that seems easy to achieve to advance story, but I cant find info on how to do it anymore...
I've read somewhere (I think on the wiki) that the command block can be used to spawn and despawn entities, I'm wanting to have an entity waiting in a room (using custom NPC mod) then when a player enters, they trigger a command block with a pressure plate that makes the "boss" taunt the player and spawn a couple easy mobs, then despawn the NPC and spawn an aggressive version of the boss, then if the player defeats him or survives for 30 seconds (no easy task since this is gonna be Herobrine) then the command block despawns the aggressive mob and respawns the NPC that the player can then talk to and learn "why" they are in that world.
Outline version:
1. player enters room, steps on pressure place, triggers command-block
2. command block spawns 2 spiders
3. command block despawns all entities
4. command block spawns aggressive "herobrine" entity (from a mod) to fight player
5. in 30 seconds, command block despawns herobrine
6. command block respawns NPC herobrine who the player can then talk to (using the Custom NPCs mod)
Any idea how to do this? I mean, yes, I could go the annoying "strong of rooms" with mobs in each (though I would still need to despawn herobrine after 30 seconds, since I have no plans of making him genuinely kill-able since he's the boss of the server) but I'd rather use a command block or two and make things happen dynamically...
I've never heard anything about command blocks being able to spawn/despawn entities, I may be wrong but I don't think that's a feature they could have.
The way I understand it, there was a /mob command that would spawn entities and a /killall that accepts a mob argument (i.e. /killall spider) that kills mobs of the specified type in the chunk, and command blocks can execute any admin command, but I cant find any info on this anymore... it could have been a mod that's no longer being developed I guess, or a removed command...
I think the best work-around (Without ugly pistons dropping into void) would be to have Herobrine and the spiders on a stack of invisible invincible villagers. Only the bottom mob will actually follow normal collision rules, so you can move the villager using a minecart to push Herobrine or the spiders up through the floor, then retract them again when you need to.
I'm not gonna lie, this sounds insane (minecraft's "physics" are always so much fun!) but I'll experiment and see how well it works for my purpose (should be able with herobrine to trigger a 30-second redstone clock that will "retract" herobrine after he's gone a round or three with the player) thanks for the idea!
You might have to download a plugin, but what you could do is use spawn eggs and dispense them. (you can make the dispenser have infinite eggs using mcedit). The you could set up the command block to tp all the mobs in a specific radius to a lava pit every 30 seconds. The only problem would be the 'nice' Herobrine, but you could just create him at a specific coordinates using a command block (cuz i think you create the npcs with a command).
A plugin might be simpler, but the other way is more 'vanilla'. your choice.
You might have to download a plugin, but what you could do is use spawn eggs and dispense them. (you can make the dispenser have infinite eggs using mcedit). The you could set up the command block to tp all the mobs in a specific radius to a lava pit every 30 seconds. The only problem would be the 'nice' Herobrine, but you could just create him at a specific coordinates using a command block (cuz i think you create the npcs with a command). A plugin might be simpler, but the other way is more 'vanilla'. your choice. Hope I helped
Might have to try that, Could set a command block to trigger after 30 seconds to tp all the mobs then after 31 seconds spawn the NPC Herobrine I suppose...
The new /summon command can be used to summon any entitlies, but for my adventure map I am trying to create a entitly despawner
Yeah, the de-spawning is the problem since this is purely an 'endurance' challenge as the 'evil' herobrine (technically "herobrine's shadow") has nearly infinite health and can only be truely killed using 1 weapon in the game* (which you can only get AFTER "defeating" him! lol)
*Might amuse everyone to know the 1 weapon that can defeat him, "The Godslayer" is a 1-time-use weapon but does Max allowed damage and can never be re-created (well unless the player can find a way to sequence-break and restart the massive quest-chain to get it again, but I'm trying to prevent it --- and no you cant PK a 2nd one, it's got a "soulbound" enchantment so when a player dies they keep it specifically to prevent this)
I'm building a server that's heavily story-based, and I had an idea that seems easy to achieve to advance story, but I cant find info on how to do it anymore...
I've read somewhere (I think on the wiki) that the command block can be used to spawn and despawn entities, I'm wanting to have an entity waiting in a room (using custom NPC mod) then when a player enters, they trigger a command block with a pressure plate that makes the "boss" taunt the player and spawn a couple easy mobs, then despawn the NPC and spawn an aggressive version of the boss, then if the player defeats him or survives for 30 seconds (no easy task since this is gonna be Herobrine) then the command block despawns the aggressive mob and respawns the NPC that the player can then talk to and learn "why" they are in that world.
Outline version:
1. player enters room, steps on pressure place, triggers command-block
2. command block spawns 2 spiders
3. command block despawns all entities
4. command block spawns aggressive "herobrine" entity (from a mod) to fight player
5. in 30 seconds, command block despawns herobrine
6. command block respawns NPC herobrine who the player can then talk to (using the Custom NPCs mod)
Any idea how to do this? I mean, yes, I could go the annoying "strong of rooms" with mobs in each (though I would still need to despawn herobrine after 30 seconds, since I have no plans of making him genuinely kill-able since he's the boss of the server) but I'd rather use a command block or two and make things happen dynamically...
Thoughts?
The way I understand it, there was a /mob command that would spawn entities and a /killall that accepts a mob argument (i.e. /killall spider) that kills mobs of the specified type in the chunk, and command blocks can execute any admin command, but I cant find any info on this anymore... it could have been a mod that's no longer being developed I guess, or a removed command...
I'm not gonna lie, this sounds insane (minecraft's "physics" are always so much fun!) but I'll experiment and see how well it works for my purpose (should be able with herobrine to trigger a 30-second redstone clock that will "retract" herobrine after he's gone a round or three with the player) thanks for the idea!
A plugin might be simpler, but the other way is more 'vanilla'. your choice.
Hope I helped
Might have to try that, Could set a command block to trigger after 30 seconds to tp all the mobs then after 31 seconds spawn the NPC Herobrine I suppose...
Yeah, the de-spawning is the problem since this is purely an 'endurance' challenge as the 'evil' herobrine (technically "herobrine's shadow") has nearly infinite health and can only be truely killed using 1 weapon in the game* (which you can only get AFTER "defeating" him! lol)
If I can make it work I'll post how I did it
*Might amuse everyone to know the 1 weapon that can defeat him, "The Godslayer" is a 1-time-use weapon but does Max allowed damage and can never be re-created (well unless the player can find a way to sequence-break and restart the massive quest-chain to get it again, but I'm trying to prevent it --- and no you cant PK a 2nd one, it's got a "soulbound" enchantment so when a player dies they keep it specifically to prevent this)
U just need to do /kill @e [type="entity's name"]
eg:/kill @e [type=zombie]
or
u can just type /kill @e to kill everything (incuding u)
hope it helps