Suggestion: @RandomLocationNearOrigin{amount=6;radius=10;minr=3;spacing=3} targeter
Closed
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.
added Enhancement label
This video shows my idea using @cone{angle=360;points=50;range=15;rotation=0} for the first split and @cone{angle=360;points=4;range=10;rotation=0} for the second split. You can see that @cone makes them choose locations near the caster instead of the totem they shoot from.
The item: https://pastebin.com/3YjRbJM6
I nested it all together so everything is in the item file except for the CanTick: false armor stands im using for the particle=mob;mob=myMob with custom fonts in their Display
Edited by Akim91Instead of making another suggestion page since im about to head to bed, i figured id add this thought here.
@RingAroundOrigin{radius=5;points=10} would be another very useful targeter for situations like the ones mentioned above.
Edited by Akim91added Completed / Resolved label