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 143
    • Issues 143
    • 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
  • #391

Closed
Open
Created May 10, 2021 by Akim91@Akim91Reporter

Suggestion: @RandomLocationNearOrigin{amount=6;radius=10;minr=3;spacing=3} targeter

Summary

@RandomLocationNearOrigin{amount=6;radius=10;minr=3;spacing=3}

Similar to RandomLocationNearTargetEntity, this would allow origin based skills to call random locations around the origin as well.

Usage

This could be used to make totems have the ability to target random locations near themselves. You could create a lava geyser that shoots out magma, or a grenade that splits up into smaller grenades on impact that select random locations near the first grenades explosion (missile for grenade, into a totem on end, then the totem would call more missiles with fromOrigin=true in them to shoot the missiles from the totem). Also a splash potion similar to the grenade is what im going for.

Ive currently tried a few other targeters such as @blocksinradius (crashed my server over 12000 missiles lol using radius of 6), @cone (targets around the caster instead of the totem), @ring (targets around the caster instead of the totem). Based on the current targeters wiki page all of the origin targeters require entities.

Value

This targeter adds the ability to make some complex skills out of mechanics that chain each other, like the splitting grenade.

Priority

Medium priority. At the moment we dont have a way to do this with the current targeters that work based on an origin.

Implementation

It would be very similar to @RandomLocationNearTargetEntity so maybe you could use that as a base. Also the @blocksinradius targeter is a meta targeter that allows selecting locations around a given location targeter already. So it would be similar to that in its execution, just picking random blocks instead of all of them.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking