Parallel action
martdamp opened this issue ยท 3 comments
Hey Nathan,
I made a move and in it I use the parallel action. The problem is that it only fires the first projectile and I don't know why it doesn't fire the others.
While the move has some custom actions they shouldn't cause the trouble.
You can also find me on the IRC channel.
earth_pebble_gatling_gun-2:
actions:
cast:
- class: CheckIfStanding
set_target_block: true
allowed: earth
actions:
- class: ApplyCooldown
spells: earth_pebble_gatling_gun-2
duration: 5000
target_caster: true
- class: Parallel
actions:
- class: ArmorStandProjectile
reorient: true
velocity: 20
actions:
- class: Damage
- class: CheckTarget
allowed: LivingEntity
actions:
- class: MageModifier
target_mage_caster: true
- class: serial
actions:
- class: delay
amount: 50
- class: ArmorStandProjectile
reorient: true
velocity: 20
actions:
- class: Damage
- class: CheckTarget
allowed: LivingEntity
actions:
- class: MageModifier
target_mage_caster: true
- class: serial
actions:
- class: delay
amount: 100
- class: ArmorStandProjectile
reorient: true
velocity: 20
actions:
- class: Damage
- class: CheckTarget
allowed: LivingEntity
actions:
- class: MageModifier
target_mage_caster: true
- class: serial
actions:
- class: delay
amount: 150
- class: ArmorStandProjectile
reorient: true
velocity: 20
actions:
- class: Damage
- class: CheckTarget
allowed: LivingEntity
actions:
- class: MageModifier
target_mage_caster: true
- class: serial
actions:
- class: delay
amount: 200
- class: ArmorStandProjectile
reorient: true
velocity: 20
actions:
- class: Damage
- class: CheckTarget
allowed: LivingEntity
actions:
- class: MageModifier
target_mage_caster: true
parameters:
armor_stand_offset: 0,-0.5,0
armor_stand_small: true
armor_stand_visible: false
sample_block: true
sample_set: earth
helmet_item: small_ball
fall_back_helmet_item: stone_0_small_ball
hitbox: true
hitbox_size: 0.5
range: 30
damage: 5
cancel_on_damage: 25
mana_modifier: 10
headshot_parameters:
mana_modifier: 25
damage: 10
Try changing "serial" to "Serial" with a capital S
There should be errors in your logs on startup or config load about an unknown action if this is the case- always check logs :)
No worries- this does make me think it'd be cool to show an in-game message for recoverable errors like this.
Currently if there is some major parsing error in your configs it'll tell you that in-game when you "/magic load" - but then there are some errors like this kind of thing, which will log and then move on (like skipping invalid actions).
Would be cool to flag when that happens so it can be shown to the player or console when using the load command.