More conditions! - Change log 1.1.0
This update adds more conditions to limit when the effects are applied.
The new conditions can be combined to require all of the conditions before the effect is applied (eg. Above y 100 and touching snow, or Within Region "Spawn" and Below y 22) - All conditions are also optional so it should be pretty flexible.
Effect.Blocks is now one of the conditions. It works just like before, so one of the blocks needs to be next to the player for the effect to be applied.
Added Effect.Below and Effect.Above options
These options allow applying effects at certain heights or depths, or within height bands. Examples:
Code (Text):
Example_above_only:
...
Above: 155
Example_below_only:
...
Below: 15
Example_between:
...
Above: 50
Below: 100
Example_above_or_below:
...
Above: 100
Below: 50
Added Effect.Region option
This option hooks with WorldGuard to check if the Player is within a region for the effect to apply. Example:
Code (Text):
Example_region:
...
Region: "region id"
Added Experimental Effect.Also_for_Mobs option
This option gives mobs the effect as well, unfortunately there is no Mob move event so it doesn't apply to all mobs all the time.
Code (Text):
Example_for_mobs_and_players:
...
Also_for_Mobs: true
Updated to using Spigot-1.13 API
Even though the previous version also worked for 1.13+ the version was updated to allow using new materials (1.15 materials as well). The plugin should still work with 1.12 and below, but some of the Material names in the updated default config don't exist in old versions (NETHER_PORTAL for example).