Simply Seasons:KubeJS

From Harvest Festival
Jump to navigation Jump to search

Simply Seasons comes with support for KubeJS. You can access everything in the javascript files by starting off with the simplyseasons path. Then you can call the following methods.

Name Return Type Info
hasSeasons(WorldJS world) boolean If this world has seasons enabled
getSeasonsAt(WorldJS world, BlockPos pos) ListJS Get a list of all the seasons this location is associated with (can be multiple if it is considered a greenhouse for example)
getSeason(WorldJS world) Season Gets the current season enum (i.e. SPRING, SUMMER, AUTUMN, WINTER, WET, DRY)
seasonsIs(WorldJS world, String season) boolean Will return true if the season is the one specified