What's new

Meteor Projectile

Ammdeil

New Member
Joined
Apr 30, 2016
Messages
29
Hi, i'd like to create a meteor rain with the projectile Meteor type and the @RLNTE{amount=#;radius=#;spacing=#} targeter but it doesn't work.
That's my code:
Code:
- projectile{t=METEOR;ot=MeteorTick;oh=MeteorHIT;v=4;i=1;hR=1;hs=true;vR=1;in=0.75} @RLNTE{amount=3;radius=10;spacing=2}
Can someone tell me what's wrong ?
 

zDrakon

Well-Known Member
Supporter
Quality Assurance
Joined
Jul 31, 2015
Messages
1,044
should work... can you specify how you know its not working? Did you put enough tick particles for it to render in game properly?
 

Ammdeil

New Member
Joined
Apr 30, 2016
Messages
29
When i replace @RLNTE{amount=3;radius=10;spacing=2} by @target it do a normal projectile but not a meteor :/
 

Ammdeil

New Member
Joined
Apr 30, 2016
Messages
29
Or more simple : can someone send me a working meteor skill please ? :)
 

Frizo

New Member
Joined
Jul 27, 2016
Messages
12
Code:
Code:
- projectile{t=METEOR;ot=MeteorTick;oh=MeteorHIT;v=4;i=1;hR=1;hs=true;vR=1;in=0.75} @RLNTE{amount=3;radius=10;spacing=2}
Code:
- projectile{onTick=MeteorTick;onHit=MeteorHit;Type=METEOR;i=4;hR=1;vR=1;d=400;mr=40;v=4;hfs=20;g=.5;repeat=2;repeatInterval=30}
V=velocity. G=gravitiy. Both will effect how fast it falls from its starting location to ground. Adjust and test for your desired effect. You said meteor rain so i put on the Repeat/RepeatInterval. Simply remove if it not wanted or needed. Also Try not putting any targeter on that skill's config and instead on the mob that is casting it. Redundant targeters can make things screwy.
- skill{s=MeteorRain} @RLNTE{amount=3;radius=10;spacing=2} ~onTimer:1200
Hope any of this helps
 

Ammdeil

New Member
Joined
Apr 30, 2016
Messages
29
I have just a last problem : can i do that the skill end ( launch the MeteorHit skill ) when it touch the ground ?
 

zDrakon

Well-Known Member
Supporter
Quality Assurance
Joined
Jul 31, 2015
Messages
1,044
I have just a last problem : can i do that the skill end ( launch the MeteorHit skill ) when it touch the ground ?
Yes. Thats what onEnd is for.

generally you want to use onHit if its a projectile, missile, or meteor that executes a specific skill to attack something.

If its just a plain meteor or projectile aiming anywhere, use onEnd
 

Ammdeil

New Member
Joined
Apr 30, 2016
Messages
29
Ok thx and i have another problem ( sorry i'm a beginner xD ) when i use a timer to activate the skill it does an error :

[23:08:22] [Craft Scheduler Thread - 897/WARN]: Exception in thread "Craft Scheduler Thread - 897"
warning.png

[23:08:22] [Craft Scheduler Thread - 897/WARN]: org.apache.commons.lang.UnhandledException: Plugin MythicMobs v2.4.5 generated an exception while executing task 17
at org.bukkit.craftbukkit.v1_9_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at net.elseland.xikage.MythicMobs.Skills.TargetSelectors.MTRandomLocationsNearTargetEntities.getLocations(MTRandomLocationsNearTargetEntities.java:34)
at net.elseland.xikage.MythicMobs.Skills.SkillMechanic.executeSkills(SkillMechanic.java:225)
at net.elseland.xikage.MythicMobs.Skills.SkillMechanic.execute(SkillMechanic.java:183)
at net.elseland.xikage.MythicMobs.Skills.Skill.ExecuteTimerSkills(Skill.java:578)
at net.elseland.xikage.MythicMobs.Skills.Skill.RunTimerSkills(Skill.java:548)
at net.elseland.xikage.MythicMobs.Clock.MythicMobsAsyncClock.run(MythicMobsAsyncClock.java:23)
at org.bukkit.craftbukkit.v1_9_R2.scheduler.CraftTask.run(CraftTask.java:71)
at org.bukkit.craftbukkit.v1_9_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
... 3 more

Do u know how can i fix it ?
 

zDrakon

Well-Known Member
Supporter
Quality Assurance
Joined
Jul 31, 2015
Messages
1,044
is it a harmless error? does the mob still work? if so, probably restart your server becuse it might be lagging idk?
 

Ammdeil

New Member
Joined
Apr 30, 2016
Messages
29
There is this error when the mob try to execute the skill and the skill doesn't appear but that's all :/
 

MithrandirCraft

Member
Premium Supporter
Supporter
Joined
Aug 16, 2015
Messages
385
May not be your case, but you'll never get this to work in 1.10.2 as particles are broken.
Unless u have acces to vip dev builds. Provably broken in other aspects.
 

Ammdeil

New Member
Joined
Apr 30, 2016
Messages
29
Ok but the problem is not on particles because with ~onDamaged it works. It doesn't work when i use ~onTimer :/
 

Frizo

New Member
Joined
Jul 27, 2016
Messages
12
I am not 100% sure, but from my own guess i would say that since your Targeter is aiming it at multiple Entities Locations and ~onTimer it simply throws an error when it doesn't have a target when the skill is being set off. Perhaps change Targeter to a more direct approach like @Self or @PlayersInRadius{r=#} or @Target. Another route is adjust your Mobs AI to target more types of Entities or its Mob Type.
 

Ammdeil

New Member
Joined
Apr 30, 2016
Messages
29
Ok i understand. I tried some things but i want that the meteors launch at random locations, the skill with timer works when i change the targeter by target, radius or other but it's not random locations :/ Do u know how to target random locations ?
 

Ammdeil

New Member
Joined
Apr 30, 2016
Messages
29
Ok problem solved ! I target some mobs which are summoned by the boss and remove instantly. Thanks a lot !
 

zDrakon

Well-Known Member
Supporter
Quality Assurance
Joined
Jul 31, 2015
Messages
1,044
Ok problem solved ! I target some mobs which are summoned by the boss and remove instantly. Thanks a lot !
Originally thats how I did it before I learned @RNTLE

Good ol fashioned armorstands and removed them :)
 
Top