Hey
This releases fixes some bugs and adds a new type of path visualizer. The so called scriptline visualizers are basically particle visualizers but instead of setting static values, one can also enter javascript code as property, allowing things like custom particles based on the worldtime or distance to the player.
E.g.: a dust particle data that changes color depending on the distance to the player.
Code (Java):
var DustOptions
= Java.
type
(
'org.bukkit.Particle$DustOptions'
)
;
new DustOptions
(Java.
type
(
'org.bukkit.Color'
).
fromRGB
(
Math.
min
(playerdistance
*
15,
255
),
0,
Math.
max
(
255
- playerdistance
*
15,
0
)
),
1
)
;
Minor:
- An SQL Exception when assigning already assigned groups to nodes
- The cancel_path effect only gets called if the path was actually cancelled. stop_path gets called whenever a path stops playing
- The selection parser for nodes now also accepts the simple input "
@n"
- JGraphT was removed and replaced with custom implementations to keep the jar small
- And other small fixes in languagae files etc.
https://github.com/CubBossa/PathFinder/releases/tag/v1.1