All versions
26.08.14.2
Beta
Hotfix - Raycast and Rounding changes2 months ago 13
Compatibility
Minecraft: Java Edition
26.2
Platform
Data Pack
Changes
Important
THIS RELEASE CHANGES THE RAYCAST MODULE. YOU WILL LIKELY EXPERIENCE ISSUES IF YOU DO NOT UPDATE YOUR RAYCAST FUNCTIONS ACCORDINGLY.
This is a hotfix for version 26.08.14, which unintentionally projected debug info into the chat when using the math:round function. Version 26.08.14 has been pulled from the Modrinth page.
Raycast Changes
- The "specific" Raycast functions have been changed so that the
solid_block_collisionmacro is truly boolean. Instead of taking string input of either"true"or"false", it now takes actual boolean input oftrue,false,1, or0.
Rounding Module Changes
- A new function has been introduced, under the math module, called
math:round. It takes three macro inputs:score,round, andreduce.scoreis the name of the scoreboard objective you'd like to round.roundis the interval which you'd like to round it to.reduceis a boolean (true/false/1/0) that determines whether or not the score should be divided byroundafter being rounded. - For example, if your
scorehas a value of 789, yourroundinput is 10, andreduceistrue,scorewill be rounded to the nearest mulitple of 10 (790), then divided by 10, for a finalscoreof 79. - This means that the round module can now be used for effective rounded division.
The previous method of invoking math:round/10 or math:round/100 is still supported for now, but I recommend you get used to the new system, as I'll likely cull these functions in the future.


