Like i want to transfert a flag to a specific locationtag to the locationtag.below[1] and clear the flag to the last locationtag
so i use:
- if <[pipe_flag_bas].below[1].has_flag[ingepipe]>:
- flag <[pipe_flag_bas].below[1]> items_pipe_bas:<[pipe_flag_bas].flag[items_pipe_bas]>
- flag <[pipe_flag_bas]> items_pipe_bas:!```
in:
```on system time secondly every:10:
- foreach <server.flag[inge_pipe]> as:pipe:
- if <[pipe].above[1].has_flag[chest_pipe_input]>:
- flag <[pipe]> items_pipe_bas:<[pipe].above[1].inventory.list_contents>
- take item:<[pipe].above[1].inventory.list_contents> from:<[pipe].above[1].inventory>
- if <[pipe].has_flag[items_pipe_bas]>:
- foreach <[pipe].flag[items_pipe_bas]> as:pipe_flag_bas:
- if <[pipe_flag_bas].below[1].has_flag[ingepipe]>:
- flag <[pipe_flag_bas].below[1]> items_pipe_bas:<[pipe_flag_bas].flag[items_pipe_bas]>
- flag <[pipe_flag_bas]> items_pipe_bas:!
- playeffect effect:crit_magic at:<[pipe_flag_bas].below[1]> quantity:10 visibility:10 offset:0.5```