1. NOTE: These forums are no longer used. Please use Discord instead.

New flag that allows or prohibits only the spawn of Monsters

Discussion in 'WorldGuard' started by small81, Aug 14, 2013.

  1. small81

    small81 New Member

    Hi Everybody,

    I have a suggestion, but do not know where I can recite it. I hope I'm right here.

    You can not program a flag that allows or prohibits only the spawning of monsters?

    I would like to continue to allow the spawning of animals in my world. But the same time I would like that the spawning of monsters in certain regions is also possible.

    But there is no suitable flag. Can you make one? This should go beyond the IDs of the monster after all?

    What do you think?

    Regards, Martin
  2. PseudoKnight

    PseudoKnight Well-Known Member Developer

    So deny-spawn is too inconvenient to use?
    small81 likes this.
  3. small81

    small81 New Member

    I forgot to say that I'm from Germany and my English is bad. Excuse.

    We play on our server on survival and game mode to Normal. The spawning of monsters but is disabled on server.probs.

    We want to continue that in the entire world the peaceful mobs spawn.

    But now are also monsters spawn in certain regions.

    With the command "spawn deny" unfortunately no longer spawn the peaceful mobs.

    Thus, another flag would be useful only for monsters.
  4. PseudoKnight

    PseudoKnight Well-Known Member Developer

    Deny-spawn is what you're looking for. Use this in the overworld:
    PHP:
    /rg flag __global__ deny-spawn SPIDER,CREEPER,ZOMBIE,SKELETON,ENDERMAN,SLIME,CAVE_SPIDER,SILVERFISH,WITHER
    Use this in the nether:
    PHP:
    /rg flag __global__ deny-spawn MAGMA_CUBE,GHAST,BLAZE,SKELETON,WITHER
    Or you can edit this in your config.yml.
    PHP:
    mobs:
        block-creature-spawn: [SPIDER,CREEPER,ZOMBIE,SKELETON,ENDERMAN,SLIME,CAVE_SPIDER,SILVERFISH,WITHER,MAGMA_CUBE,GHAST,BLAZE]
    small81 likes this.
  5. small81

    small81 New Member

    I think I love you. I checked with several German forums and no one could help. Thank you.

    So then I have to do the following:
    1. enable monster-spawning on server.probs
    2. Command: /region Flag __GLOBAL__ deny-spawn SPIDER,CREEPER,ZOMBIE,SKELETON,ENDERMAN,SLIME,CAVE_SPIDER,SILVERFISH,WITHER
    3. select region with command //wand
    4. Command: /region define <regionname>
    5. /region flag <regionname> allow-spawn SPIDER,CREEPER,ZOMBIE,SKELETON,ENDERMAN,SLIME,CAVE_SPIDER,SILVERFISH,WITHER

    Is this right?
  6. PseudoKnight

    PseudoKnight Well-Known Member Developer

    There's no "allow-spawn" flag. What you have to do is override the existing deny-spawn flag. To do that you need to have something set in deny-spawn. Since that requires an entity, I usually set something arbitrary like "GIANT", which is a real entity type but never spawns.

    /rg flag <regionname> deny-spawn GIANT

    It's odd, but it works.
    small81 likes this.
  7. small81

    small81 New Member

    Now my English is overwhelmed :)

    I understand that the GIANT is a wildcard/placeholder. But when I have to enter what?

    Can you explain the basis of my list when I need to add this? And what I have to write exactly?

    Thank you.

    By the way, in addition to my lack of knowledge of English, I'm still a noob in World Guard.

    I've only used the configurations of World Guard to protect my world. Flags, regions, etc are new territory for me.

    Therefore I ask for exactly.
  8. PseudoKnight

    PseudoKnight Well-Known Member Developer

    Instead of "allow-spawn" on #5 of your list, just use the command I showed.
    small81 likes this.
  9. small81

    small81 New Member

    I repeat:
    1. enable monster-spawning on server.probs
    2. Command: /region Flag __GLOBAL__ deny-spawn SPIDER,CREEPER,ZOMBIE,SKELETON,ENDERMAN,SLIME,CAVE_SPIDER,SILVERFISH,WITHER

    3. select region with command //wand
    4. Command: /region define <regionname>
    5. /rg flag <regionname> deny-spawn GIANT

    And now in the selected region monsters spawning again?

    Thank you so much for your help. And I'm also very sorry that I am so stupid instead.
  10. PseudoKnight

    PseudoKnight Well-Known Member Developer

    Yes.
    small81 likes this.
  11. small81

    small81 New Member

    Thank you very, very much. I will test and report it.
  12. small81

    small81 New Member

    It works great. You are the Best!

    Thank you so much.

    CLOSED