Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 132
    • Issues 132
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #931

Closed
Open
Created Sep 20, 2022 by Frog Doctor@TheFrogDoctor

Add Targeting options to RandomSpawn conditions

Summary

Add targets to mob spawning conditions, such as Conditions:

  • blocktype{type=diamond_ore} @BlocksNearOrigin{radius=6} true so that spawn conditions can be based on things other than the exact location the mob is spawned at.

Usage

In the above scenario, you can make a mob that only spawns near diamond ores but doesn't necessarily need to be on top of the diamond ore itself. It gives much greater flexibility to random spawns by allowing spawn conditions to be based on mobs, players, and locations near the intended spawn location, not just the mob and spawn location itself.

Value

It could allow players to build temples out of specific block arrangements that would be more likely to spawn certain mobs, or allow mobs to only spawn if near a player under a certain condition or holding a certain item etc. It just gives way more options for what you can do with random spawns

Implementation

Just need to add the @target after the condition to change it from focusing on @selflocation, such as Conditions:

  • blocktype{type=diamond_ore} @BlocksNearOrigin{radius=6} true
Edited Mar 30, 2025 by Brickgard
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking