Adriftus-Studios / network-script-data

Public, open-source repository of Adriftus Studios' Minecraft network. Powered by Denizen Script.
https://discord.gg/adriftus
19 stars 12 forks source link

No IterationsPerArrow #425

Open Rorkh opened 2 years ago

Rorkh commented 2 years ago

Don't will be better solution for arrow traces to do such thing in listed below way instead of fixed number repeat?

# Just for reference
bow_modifiers_handler:
    type: world

    events:
        on player shoots bow:
            - ratelimit <player> 1s

            - flag <context.projectile> is_flying:true

            - wait 1t

            - while true:
                - if !<context.projectile.is_spawned>:
                    - stop
                - if !<context.projectile.has_flag[is_flying]>:
                    - stop

                - playeffect redstone at:<context.projectile.location> quantity:5 offset:0.25 special_data:2|red targets:<player.world.players>
                - wait 1t
        after arrow hits *:
            - flag <context.projectile> is_flying:!
Eutherin commented 2 years ago

Oh this got signed to me?

Rorkh commented 2 years ago

Oh this got signed to me?

That's was done automatically for some reason