Magic

Magic

190k Downloads

Change Context... uhhhhhhh

FinnDemonCat opened this issue ยท 4 comments

commented

https://user-images.githubusercontent.com/94855390/236708894-b0a55555-a22d-452d-b7bf-0ea16ef175bb.mp4
So for some reason the change context only works half of the time, here is the spell:

hop:
creator: Finn_Lopes
creator_id: 68e1f94f-258e-46ac-ac7a-0c87c40a7dbb
name: Leap
icon: iron_boots
actions:
cast:
- class: ChangeContext
orient_pitch: false
source_pitch: 90
actions:
- class: CustomProjectile
range: 3
speed: 2
actions:
- class: Sphere
radius: 1
actions:
- class: ModifyBlock
effects:
tick:
- location: target
effectlib:
class: Particle
particle: end_rod
particle_count: 1
cast:
- location: origin
source_location: feet
effectlib:
class: Particle
particle: cloud
iterations: 1
particle_count: 3
speed: 0.2
- sound: magic.shield_boom
parameters:
target: block
undo: 1000
brush: light_blue_stained_glass
range: 10
destructible: transparent_to_construction
radius: 5

And I have no idea why it isn't working

commented

try putting use_target_location: false and/or ignore_targeting: true for CustomProjectile action and see if it works

commented

I will see when I get time. I think these parameters make sense.

commented

Didn't seem to work. Something whith Change Context is broken. I tried:

  • class: Sphere
    center_y: true
    center_x: true
    center_z: true
    radius: 4
    actions:
    - class: ModifyBlock
    But even it didn't work.
    image
commented

I got it to work, tho I had to set the caster as the target.