Command "/mm mobs spawn" little improvment (world specify)

Discussion in 'Suggestions' started by tiradorus, Jul 11, 2018.

  1. tiradorus

    tiradorus New Member
    Supporter Premium Supporter

    Joined:
    Sep 7, 2015
    Messages:
    27
    Likes Received:
    0
    Hey, i have an idea, an idea that could be interresting.

    The command to spawn a mob is really cool, but have a huge limit. there is the problem :S

    Hou have to spawn a mob where you are? - Ok just enter the command in the chat.
    Hou have to spawn a mob in a specified world? Ok enter the coordinates + the world
    Hou have to spawn a mob into a unspecified world with command block? C'ant

    So, i had an idea, the command to spawn a mob at specified location lookslike that:
    /mm mobs spawn <mob> 1 <world>,x,y,z
    And i'm asking to an improvment like that:
    /mm mobs spawn <mob> 1 <thisworld>,x,y,z
    (if world unspecified)

    So in real term, the global command would look like that:
    /mm mobs spawn <mob> 1 x,y,z
    #(if you don't specify the world, the mob will spawn at the coordinates, but from the world were the command has been entered)

    So, you should ask me "Why the f*ck do you want to not specify the world?"

    The reason is simple, i have a huge server where i have some dungeons, thoses dungeons have many commands blocs and the total configuration is too long to explain here but, when a group of players enter into one of thoses dungeons, a copy of the dungeon's world is created where the group is alone in.
    It create a 'false world' where they could start the dungeon, activate command blocs, destroy the map if they want, without modify the former map. And doing it again and again.

    The problem here is the false world created have the name of the former world-1 (example, Antarion is the real dungeon name, a player enter in, a world Antarion-1 is created)
    So, actually all commandBlocs have the "Antarion-1" specified to spawn the mobs, so it works ... yes, until another group of player wants to enter the dungeon too.
    If another group of player wants to enter into the dungeon, another world is created, named "Antarion-2"
    And then all commands blocs are inefective, because they will spawn the mobs into the first opened dungeon. It's a hard problem, because here it's just if there is 2 groups in the same time, but actually it's more a 7/8 group in the same time than 2 ...
    I had to open only 1 dungeon for everyone, and eachs groups have to wait the end of the first group etc etc, i'ts not reliable.

    So, could you add a command like that
    /mm mobs spawn <mob> 1 x,y,z

    If world unspecified, it would spawn into THIS WORLD
    Thanks for reading.
     
    #1
    Last edited: Jul 11, 2018
  2. tiradorus

    tiradorus New Member
    Supporter Premium Supporter

    Joined:
    Sep 7, 2015
    Messages:
    27
    Likes Received:
    0
    Bump ^^
     
    #2
  3. Omanoctoa

    Omanoctoa Active Member
    Supporter Premium Supporter

    Joined:
    Mar 10, 2016
    Messages:
    371
    Likes Received:
    33
    The problem is mobs can only be spawned into loaded, active chunks. Attempting to spawn a mob in an inactive chunk causes it to immediately despawn (or fails to spawn at all). Me and another member spent almost a week trying to figure this out with no luck.

    The <world> variable would be nice, though. If you are using a Command Block to spawn a mob into a remote, unspecified world however...might be best to find another way to do it. If you insist on this method, perhaps a plugin like SimpleAlias could help you. It allows you to bundle commands (with cooldowns, permissions, costs, etc) into a single alias command, and has world-variable support.
     
    #3
  4. Nexto

    Nexto New Member

    Joined:
    Dec 3, 2017
    Messages:
    10
    Likes Received:
    0
    I will take a look at this tomorrow (its 2 am), but probably will requiere another plugin to make it work correctly
     
    #4
  5. Nexto

    Nexto New Member

    Joined:
    Dec 3, 2017
    Messages:
    10
    Likes Received:
    0
    Alright, here is something that should work:

    - Install MyCommand https://www.spigotmc.org/resources/mycommand.22272/

    - Add this to MyCommand's example file
    Antarion1:
    command: /Antarion1
    type: RUN_CONSOLE
    runcmd:
    #- $world=%yourworld%/mm m s yourmob 1 $world,cordx,cordy,cordz.
    - $world=%Antarion-1%/mm m s Invocador 1 $world,49,45,-38.
    permission-required: true
    permission-node: antarion.mobspawn

    ^ This command will spawn all the mobs of your dungeon , hope you understand the example (you would need to do 1 command per dungeon world)

    Add a pressure plate/lever that players need to active before they start the dungeon that active 4 command blocks:
    1.- Impulse & needs redstone. pex user @p add antarion.mobspawn
    2.- Chain & always active. mycmd-runas player @p /antarion1
    3.- Chain & always active. pex user @p remove antarion.mobspawn
    4.- Chain & always active. setblock (first command block cords) stone

    And.. thats all, if you have any doubt feel free to add me on discord (Nexto#3180)
     
    #5
  6. tiradorus

    tiradorus New Member
    Supporter Premium Supporter

    Joined:
    Sep 7, 2015
    Messages:
    27
    Likes Received:
    0
    Sory Oma but's it's the only way for me to do it.

    I have to change the whole dungeon's system (it's really complicated) if i have to change the spawn-system by command-block.
    Every dungeons have his own server to work, and the view distance (Chunk loader) is more than 32. So there is no command entered outside of the loaded chunk.

    If someone could make me a command as i asked, it would be very very helpfull for me and my community. Actually i had to entirely close one of my dungeons because there were too many players in the same time that wanna enters in.
    An i can't repair it t'ill i don't have the new command :S
     
    #6
  7. Nexto

    Nexto New Member

    Joined:
    Dec 3, 2017
    Messages:
    10
    Likes Received:
    0
    Wait until mythicmobs adds it or work a bit harder and do a custom system for it like the one i said.
    With custom commands plugins you can also do something like this
    Your command blocks -> /MythicSpawn <mob> 1 %world,x,y,z
    The command that actually executes -> /mm m s <mob> 1 (whateverworldthecommandblockisin),x,y,z
     
    #7
  8. tiradorus

    tiradorus New Member
    Supporter Premium Supporter

    Joined:
    Sep 7, 2015
    Messages:
    27
    Likes Received:
    0
    Ok i've seen Nexto
    I had to do many tests but at last, it works.

    But i have to create more than 150 commands for 20+worlds, so 3000 commands xD
    But it works, for the moment ^^'
     
    #8

Share This Page