2.10Релиз7 августа 2026 · для 1.21.1 · NeoForgeСкачать
【中文更新日志】
2.10 版本更新 - 三维空间轨迹支持:
新增三维函数轨迹支持!现在可以使用 y=表达式;z=表达式 格式为弹射物定义三维空间中的立体轨迹,让箭矢、TNT 和烟花火箭在飞行时同时沿 Y 轴(高度)和 Z 轴(水平偏移)变化,实现螺旋线、波浪线等炫酷的立体弹道!
支持纯 Z 轴轨迹:使用 z=表达式 格式可以单独定义水平偏移,Y 轴保持为 0(即贴地飞行)。
向后兼容:原有的 y=表达式 和 f(x)=表达式 格式继续有效,旧存档和命名不受影响。
解析器新增对 y=...;z=... 双表达式格式的识别,自动检测并启用三维轨迹模式。
三维轨迹的起始点会自动寻找有效的起始 x 值,避免因表达式在 x=0 处无效而无法发射的问题。
所有弹射物类型(箭矢、TNT、烟花火箭)均支持三维轨迹,激发更多创意玩法!
【English Changelog】
Version 2.10 - 3D trajectory support:
Added 3D function trajectory support! Use the y=expression;z=expression format to define立体 trajectories for projectiles, allowing arrows, TNT, and fireworks to change in both Y-axis (height) and Z-axis (horizontal offset) simultaneously – create stunning spiral patterns, wave paths, and more!
Support for Z-axis only: use z=expression format to define horizontal offset independently, with Y fixed at 0 (ground-level flight).
Backward compatible: existing y=expression and f(x)=expression formats continue to work – old saves and renames are unaffected.
Parser now recognizes the y=...;z=... dual-expression format and automatically enables 3D trajectory mode.
3D trajectories automatically find valid starting x values, preventing launch failures when expressions are invalid at x=0.
All projectile types (arrows, TNT, fireworks) support 3D trajectories – unlock even more creative possibilities!
2.9Релиз10 июля 2026 · для 1.21.1 · NeoForgeСкачать
Fixed a critical crash vulnerability where custom functions calling themselves or mutually referencing each other would cause StackOverflowError, potentially crashing the server or corrupting saves.
Added recursive call detection mechanism that throws a friendly "circular call" error when direct or indirect recursion is detected, instead of crashing.
Implemented a maximum recursion depth limit (64 layers) to prevent performance issues from accidental deep recursion.
You can now safely define and test custom functions – even if you accidentally write recursive calls, the game will gracefully display an error message instead of crashing.
2.8.1Бета9 июля 2026 · для 1.21.1 · NeoForgeСкачать
Fixed missing localization keys for custom function commands introduced in 2.8; all command feedback messages now properly support both English and Chinese.
2.8Альфа9 июля 2026 · для 1.21.1 · NeoForgeСкачать
自定义函数名称不能与内置函数(如 sin、sqrt、log 等)或数学常数(e、pi)冲突,确保安全。同时 f 作为保留名称也不可用,以避免与 f(x)= 前缀冲突。
所有自定义函数均可在 /fx 命令和函数附魔轨迹命名中使用,极大简化复杂表达式的输入。
【English Changelog】
Version 2.8 - Custom function system:
Added custom function support! Now you can use the /customfunction command to create, store, and call your own math functions, making complex expression reuse effortless.
Add a custom function: `/customfunction add — e.g./customfunction add square x^2, then use square(3)` to compute 9!
List all defined functions: /customfunction list shows all saved custom functions.
Get a function expression: `/customfunction get ` displays the definition of a function.
Evaluate a function: `/customfunction eval <x_value>` quickly computes the function value at a given x.
Modify an existing function: `/customfunction modify <new_expression>` updates the function definition.
Remove a function: `/customfunction remove ` deletes an unwanted function.
Clear all custom functions at once: /customfunction remove-all (requires operator permissions).
Custom functions support mutual references and nested calls, e.g. define f1(x)=x^2 and g(x)=sin(f1(x)).
Custom functions are automatically saved to custom_functions.json and persist across game restarts.
Custom function names cannot conflict with built-in functions (such as sin, sqrt, log, etc.) or math constants (e, pi), ensuring safety. The name f is also reserved to avoid conflicts with the f(x)= prefix.
All custom functions can be used in /fx commands and function enchantment trajectory naming, greatly simplifying the input of complex expressions.
Version 2.7 - Expression parser major enhancement:
Added mathematical constants: now you can use e (Euler's number) and pi directly in expressions, e.g. sin(pi/2) or e^x.
Added unary minus support: now you can write expressions like -x^2 or -sin(x) – the parser handles negative signs correctly.
Added practical math functions: floor (round down), ceil (round up), round (round to nearest), trunc (truncate decimals), mod (modulo, e.g. mod(x, 3)), min (minimum, e.g. min(x, 5)), max (maximum, e.g. max(x, -1)).
Added random number functions: Ran# generates a random decimal between 0 and 1, RanInt(min, max) generates a random integer within the specified range!
Critical fix: Fixed a severe bug where using parameterized functions (such as sin, sqrt, log, etc.) with incorrect argument counts (e.g., missing parameters or extra parameters) would crash the game and corrupt the save. The parser now properly validates argument counts and provides clear feedback for malformed expressions instead of crashing.
The expression parser is now more powerful, robust, and safer, unlocking even more creative possibilities for function graphs and enchantment trajectories.
Rewrote the mathematical expression parser with support for more functions and flexible syntax.
New functions added: abs (absolute value), exp (natural exponential, #1), log(base, value) for arbitrary base logarithms (e.g. log(2, 8) computes log base 2 of 8), and sqrt(root, value) for arbitrary roots (e.g. sqrt(3, 64) computes the cube root of 64).
Supports shorthand logN notation, e.g. log2 for base-2 logarithm, log10 for common logarithm.
Parser is now more robust, correctly handling nested functions and complex expressions.
All function enchantments and command features utilize the new parser for more accurate calculations and broader mathematical expression support.
Version 2.5 - Zero anvil cost for function naming:
Renaming an item to f(x)=expression or y=expression format in an anvil now costs zero experience levels! You can freely give any compatible item function trajectory capabilities without spending any XP.
Placing a "Math Function" enchanted book in the anvil's secondary slot also reduces the cost to zero, making it easy to transfer the enchantment.
The system automatically recognizes valid math expressions (starting with y= or f(x)=) and waives the experience cost.
Version 2.4 - Added Trident Riptide function trajectory support:
Rename a trident to f(x)=expression or y=expression, then use the Riptide enchantment to dash through water or rain — you will fly along the mathematical function curve! Experience function-powered flight like a roller coaster.
Press the jump key (Space) anytime during flight to stop the function trajectory immediately and end the Riptide state.
Trident Riptide flight features cool particle trails (firework, crit, and enchanted hit particles) for a more spectacular visual effect.
Automatically terminates flight upon hitting blocks or entities to prevent getting stuck inside.
Version 2.3 - Projectile trajectory stability improvement:
Fixed an issue where all projectile types affected by the function trajectory (arrows, fireworks, etc.) would occasionally be affected by gravity during flight, causing deviation from the function curve. All projectiles now strictly follow the mathematical path at all times.
Ensured accurate trajectory alignment for all projectile types regardless of firing angle, with no unexpected drops or rises.
Firework rockets now fly smoothly along mathematical function trajectories with no jitter or deviation.
When a firework hits any block or entity during flight, it instantly explodes at the impact point, producing a spectacular firework burst and dealing area damage to nearby creatures.
The explosion effect is identical to vanilla fireworks, including particles and sound.
Overall control logic is more robust, ensuring precise trajectory alignment regardless of firing angle.
Сайт использует cookie: необходимые — для входа и темы, а также счётчики посещений Яндекс Метрика и LiveInternet — по ним мы видим, как пользуются сайтом. Рекламных cookie у нас нет. Подробнее