π¦ Bookshelf - 3.1.0#
π« The Spatial Update!
Introduces Moon and Sun position features, as well as fully customizable hitboxes that integrate across the entire Bookshelf ecosystem.
Bookshelf is now based on Minecraft 1.21.8.
π§± bs.block#
π #469 - Fixed missing
execute in minecraft:overworldwhen running location-based loot tables.
π¬ bs.dump#
π #441 - Fixed
#bs.dump:varincorrectly appendingundefinedto output.
β°οΈ bs.environment#
β¨ #14 - Added
#bs.environment:get_sun_angleto get the sunβs angle at a specific time on the Y axis relative to the horizon, in degrees.β¨ #14 - Added
#bs.environment:get_moon_angleto get the moonβs angle at a specific time on the Y axis relative to the horizon, in degrees.β¨ #14 - Added
#bs.environment:get_current_sun_angleto get the current sunβs angle on the Y axis relative to the horizon, in degrees.β¨ #14 - Added
#bs.environment:get_current_moon_angleto get the current moonβs angle on the Y axis relative to the horizon, in degrees.β¨ #14 - Added
#bs.environment:get_moon_phaseto get the current moon phase as a string identifier following Minecraftβs 8-day lunar cycle.β¨ #14 - Added
#bs.environment:look_at_sunto orient the executing entity to look at the sun.β¨ #14 - Added
#bs.environment:look_at_moonto orient the executing entity to look at the moon.β¨ #475 - Added time-based predicates:
is_day_time,is_night_time,is_sunrise_time,is_sunset_timefor determining current time of day.β¨ #475 - Added villagers behavior predicates:
is_villager_working_time,is_villager_socializing_time,is_villager_sleeping_timefor detecting villager activity phases.β¨ #475 - Added beds usage predicate:
is_bed_timefor determining when players can use beds based on weather and time conditions.β¨ #475 - Added mobs behavior predicates:
is_undead_burning_time,is_monster_spawning_timefor detecting mob behavior condition according to weather and time.β¨ #475 - Added bees behavior predicate:
is_bee_sleeping_timefor detecting time when bees are in their nests/hives.β¨ #475 - Added creakings spawning predicate:
is_creaking_spawn_timefor detecting time when creakings can spawn.
β€οΈ bs.health#
π #466 - Fixed a bug where healing on Paper servers always set playersβ health to maximum.
π― bs.hitbox#
β¨ #465 - Added support for custom hitboxes.
#bs.hitbox:get_entitynow also returnsdepthin addition towidth. For most dynamic entitiesdepthequalswidth, except for static entities (e.g. item frames, paintings) and custom hitboxes.
π±οΈ bs.interaction#
π #463 - Fixed an issue where left/right click events could incorrectly target previously clicked entities instead of the current one.
π bs.move#
β¨ #465 - Optimized bounding box computation for moving entities and added support for baked and custom hitboxes.
π§ bs.position#
π #455 β Replaced
/rotatewith/tpinbs.positionto fix jitter and momentum issues.
π² bs.random#
π¦ bs.raycast#
π§£ bs.spline#
β¨ #417 - Added full support for linear splines.