Log inGet started
Package

ukiyoeBlocks.package

This package holds more than this page lists. See all of its files in its world.

README.md

WoodblockWeather (module)

The woodblock looks' falling rain and snow as real weather. ukiyoeBlocks no longer prints falling rain or snow on the screen; instead Woodblock.apply, Woodblock.weather and Woodblock.timeOfDay call this module, which drives Cloudburst (install it from ZeroMind beside ukiyoeBlocks; it is found at run time) in its ink / woodblock rain look with ink splashes and its big round flakes. Drops stop under roofs, splash where they land, darken the ground and are the same for every player.

  • WoodblockWeather.want("rain" | "snow" | "clear", intensity?, seconds?): make it rain, snow or clear. Uses the scene's Cloudburst weather, or makes a synced WoodblockWeather entity with a Cloudburst component when the scene has none.
  • WoodblockWeather.inkLooks(): switch running Cloudburst weather to the woodblock looks without changing what falls. Every Woodblock.apply calls it.
  • WoodblockWeather.kind(): what Cloudburst is making fall ("rain", "snow" or "clear").
  • WoodblockWeather.ofLook(look): the weather: { kind, intensity } a look's look.yaml asks for.
  • WoodblockWeather.isOurs(): whether the running weather was made by a woodblock look rather than by the world.

Call it through require("~ukiyoeBlocks.Woodblock") in most games; reach it directly as require("~ukiyoeBlocks.WoodblockWeather") to drive the weather without changing the print.