如有任何问题或请求,最好的联系方式是通过 Discord (@skeleton.toast)。
Silver Star Library 是一款面向数据包创作者的开发工具。它最初是我为自己使用而创建的库,但其用途并不局限于我的个人项目,而是可以广泛应用于各种场景。
如果您需要适用于旧版 Minecraft 的 SSL 更新版本,请联系我!进行反向移植通常并不难,我也很乐意为之效劳,尽管这可能需要一些时间。
注意(26/10/09):如果您之前安装了版本 26.10.08,且尚未下载更高版本,请务必下载。如果您希望自行修复此问题,错误位于函数 ss_lib:load_constants 中。第 2 行中的值 #const.10 被错误地设置为 -1。
开发者须知
对于 SSL 的许多功能,您需要调用 ss_lib:_pre_function 和 ss_lib:_post_function 函数。这些文件的设计意图分别是作为所有其他函数运行之前和之后执行的入口点。在我的其他项目中,我通过一个“核心”模块在适当的时间调用这些函数来实现这一点,但您可以按照自己喜欢的方式处理。
本数据包按“原样”提供。我不对包含代码的健壮性或可读性做出任何保证。只要我继续开发该项目,将会提供更新和补丁。
功能特性
- 分数解析至函数
- 射线投射
- 自定义药水效果(Elixir 框架)
- 易于引用的 UUID(SSIDs)
- 高效的玩家数据获取
- 位打包
- 自定义游戏规则
- 简写数学函数
详细的分解说明请参阅我的 GitHub。以下提供了最重要模块的相关信息。
分数解析模块 (Score Parse Module)
分数解析模块是 SSL 的一个子模块,它接收记分板目标名称和函数作为宏输入,并将记分板目标的值以宏的形式输出到目标函数中。例如,如果一名玩家的 Test 分数为 50,并且希望其最大生命值属性始终与 Test 分数匹配,分数解析模块可以读取其分数并向目标函数输出字符串 "50"。SPM 还具备前置、后置及插入特殊字符的能力,从而允许将分数转换为浮点数。
本质上,分数解析模块用于将分数转换为宏字符串。
射线投射模块 (Raycast Module)
射线投射模块添加了一组用于创建射线投射的函数,以实现即时的直线方块或实体检测。它允许输入射线投射的距离、每个射线节点之间的整数间隔,以及目标方块、实体或两者。如果射线投射成功并检测到目标,它将运行指定的函数。
这是一个递归函数。每次递归时,它会向前移动一小段距离,检查是否满足任何终止条件,检查是否已达到最大距离,否则调用自身以继续前进。
自定义药水效果 / Elixir 框架
Elixir 是一个模块,它为完全自定义的药水效果(包括叠加应用,仅靠分数很难实现)设置了必要的框架。Elixir 框架允许您在任意时间应用效果,并智能地对活动应用进行排序,使其与原版药水效果匹配,例如,优先级最高的是放大器数值最高的应用。
Elixir 的编写方式使得其他数据包可以轻松访问和使用它,而无需在 Silver Star Library 本身中编写任何代码。要添加您自己的自定义药水效果,您需要创建两个函数:
- 当实体具有该自定义效果激活时运行的函数
- 当应用过期时运行的函数
例如,其中一个预设效果,为了清晰起见称为“状态”,名为 Lightweight。激活函数会应用降低重力和击退抵抗力的属性,而过期函数则会移除这些属性。
SSL 附带了一些预设状态。您可以随意使用它们,或者如果您不使用它们,也可以将其删除。
SSID
Silver Star Identifier(银色之星标识符),简称 SSID,是分配给实体的数值,本质上赋予了它们一个可以像分数一样交互的 UUID。SSID 是对先前 URID 系统的进化,因此取代了不再支持的 URID。SSID 是一个在请求时分配给任何实体的 9 位数,存储为记分板值,并且在一个世界中 EVER(永远)只能使用一次。通过让待分配的实体运行以下函数来分配 SSID:ssid:assign。
SSID 旨在用作基于记分板的实体标识符,这也允许在每个实体的基础上进行全局数据存储。如果您通过解析模块传递它们的 SSID,并使用它来创建/访问数据存储位置,这就允许进行复杂的(不仅仅是记分板)存储,并且只有正确的实体才能访问这些数据。
分数 / 智能分数“获取”
SSL 添加了广泛覆盖实体数据、状态、位置等的多种分数。这些分数可以通过一组“获取”函数按需调用,这些函数内置了检查机制,以确定它们是否已在同一刻被调用过。与每秒计算分数相比,这极大地提高了效率,因为它允许仅在必要时计算分数,并且意味着不会有冗余计算。
SSL 还添加了“通用”分数以及基本的整数分数。“通用”分数旨在单个函数内分配和使用,因为它们仅作为临时占位分数。默认存在 26 个通用分数:对应英文字母表中的每个字母,格式为 generic_<letter>(例如 generic_k)。
常量会自动添加,范围从 -100 到 100。这些可以通过幻象玩家 #const.<number> 的 value 分数来访问。
“Fetch”模块允许你仅在需要时将玩家数据存储到分数中,从而减少额外的处理开销。Fetch 函数包含在 ss_lib:fetch/ 下,其中包括许多常用数据位置,例如玩家的生命值、当前选中物品、装备的武器和护甲等。
引入 Fetch 函数的原因是它们可以随时调用,但如果该数据已在同一刻(tick)被访问过(并已分配到相应的分数),函数将终止而不会重新获取数据,因为你已经拥有该数据。这意味着你可以运行一个 fetch 函数 10,000 次,但它实际上只会获取一次玩家数据。那些可能在刻内中途发生变化的数据(例如获取玩家的生命值或吸收伤害)通常具有覆盖机制,允许即使在该刻已运行过的情况下再次执行函数。
Fetch 模块添加了以下函数:
ss_lib:fetch/absorption
ss_lib:fetch/health
ss_lib:fetch/health_attributes
ss_lib:fetch/armor
ss_lib:fetch/attack_damage
ss_lib:fetch/attack_speed
ss_lib:fetch/fall_flying
ss_lib:fetch/fire
ss_lib:fetch/in_water
ss_lib:fetch/is_sprinting
ss_lib:fetch/item_selected
ss_lib:fetch/location
ss_lib:fetch/coordinates
ss_lib:fetch/moon_phase
ss_lib:fetch/on_ground
ss_lib:fetch/using_bow
ss_lib:fetch/using_shield
ss_lib:fetch/weapon
ss_lib:fetch/gear/armor_type
ss_lib:fetch/gear/weapon_material
ss_lib:fetch/gear/weapon_type
ss_lib:fetch/gear/weapon_weight
二进制拆解 / 位打包 (Bitpacking)
SSL 还引入了一个用于“位打包”的模块:通过将整数视为二进制数,使用一个整数来存储一堆真/假条件。
这样做允许你在单个分数中存储最多 32 个布尔条件(0-31),方法是将代表 2 的指数倍的值加到分数中。例如,如果你想将条件 #10 和条件 #14 设为 true,而保持其他条件为 false,则去歧义值将被设置为 17408(2^10 + 2^14),只有在这两个条件为真时才能创建该值。然后,“Binary Dissection”文件会拆解这个值,读取条件 #10 和 #14 为真,并根据这些条件执行相应的函数。
这主要用于简化操作。如果你希望拥有任意数量的真/假条件(例如,在我其中一个项目中,我用它来检查玩家是否装备了某些“护符”),但不想创建 32 个分数或 32 个标签,你可以使用单个分数将它们全部组合在一起。
游戏规则 (Gamerule) 模块
这是一个旨在模拟原版游戏规则的系統,允许开发者设置可随意更改的全局游戏规则,并在需要时引用。这是跟踪适用于整个世界后端设置的好方法。
要引用一个游戏规则,一旦实例化,请引用由幻象玩家 $source.gamerule.gamerule_name 持有的 true 分数(用于布尔型游戏规则)或 value 分数(用于基于范围的游戏规则)。当然,请将 “source” 和 “gamerule_name” 替换为你游戏规则的相关信息。这可能看起来像这样:
execute if score $awesomepack.gamerule.pvp_enabled run...
拥有 ssl.permissions.level 分数为 4 或更高的玩家还可以运行命令 /trigger ssl.gamerule.query 以查看跨所有数据包的所有 SSL 基础游戏规则的列表,包括它们的类型、适用范围(如果适用)以及当前值。
数学模块
取整函数
取分子模块用于提高分数在相除时的精度。默认情况下,Minecraft 总是将两个分数的商向下舍入到最接近的整数。然而,取整模块会对这些值进行正确的四舍五入,而不是每次都向下舍入。
取整模块非常简单直接。它接受三个输入参数:score,即将为执行实体的记分板目标进行舍入;round,即用于舍目的的除数;以及 reduce,即一个布尔值,用于确定是否在计算结束时将舍入后的数字除以 round。例如,如果你想将 score 舍入到最接近 7 的倍数,请将 round 设置为 7。如果你希望将此值除以 7,请将 reduce 设置为 true,否则设置为 false。
对于版本 26.10.22 及更高版本:这些函数已被以下函数取代:
math:round/int
math:round/score
math:round/up/int
math:round/up/score
math:round/down/int
math:round/down/score
其他函数
指数函数
添加了两个新的指数函数,即:math:power/integer 和 math:power/score。math:power/integer 接受两个输入参数 $(base_score) 和 $(exponent)。
绝对值
添加了函数 math:absolute_value,如果输入分数为负数,则使其变为正数。它接受一个输入参数 $(score)。这段代码极其简单,但我发现有一个简写很方便。
位数计数器
添加了函数 math:digit_counter,用于计算输入分数的位数并将其返回到指定的输出分数。它接受两个输入参数:$(input_score) 和 $(output_score)。$(input_score) 中的位数将被写入 $(output_score)。
注意:值为 0 的输入分数仍将返回 1 位数。
偶数函数
新增 math:even 函数,若输入分数尚未为偶数,则将其四舍五入至最接近的偶数。它接受两个输入参数:$(score) 和 $(sign)。$(score) 是将被修改的计分板目标名称,$(sign) 必须是 "-" 或 "+" 的字符串。此参数指定函数是向上还是向下取整。
概率函数
新增两个概率函数:math:chance/percentage 和 math:chance/score。它们会以一定的随机几率触发你指定的函数,触发的概率取决于你的输入。
math:chance/percentage 接受两个输入:$(value) 和 $(function)。$(value) 是一个介于 0.00 到 1.00 之间的浮点数,用于确定 $(function) 触发的可能性。$(function) 显然应该是一个函数的名称。
类似地,math:chance/score 执行相同的操作,只是使用分数而非固定值。此函数接受三个输入:$(score)(一个计分板目标)、$(max_value)(一个用于与 $(score) 的值进行比较的整数)以及 $(function)(如果概率成功,将被触发的任意函数的名称)。例如,如果你由 $(score) 指定的目标值为 15,并且为 $(max_value) 输入了 30,那么 $(function) 将有 15/30 即 50% 的几率触发。
尽管 math:chance/percentage 的代码非常基础,但我发现提供一个简写形式很有帮助。此外,math:chance/score 需要某种函数来传递解析后的值。
动作标签 (Action Tags)
SSL 为“动作标签”提供了一些功能,这些标签应用于实体以执行通过命令难以直接执行的代码。目前有三个动作标签:
适用于 SSL 26.09.22 或更早版本:
Extinguished、Pacified 和 FallDamageNegated
适用于晚于 26.09.22 版本的 SSL:
ssl.action.extinguish、ssl.action.pacify 和 ssl.action.negate_fall_damage
熄灭火焰标签会立即熄灭任何当前处于着火状态的实体。安抚标签会使任何敌对生物停止攻击(de-aggro),但如果范围内有目标,它们可能会立即重新进入攻击状态。坠落伤害减免标签将防止该实体在下一次着地时受到任何坠落伤害,但请注意:如果将此标签应用于当前正站在地面上的实体,它将立即被移除且无任何效果。
所有动作标签仅在触发一次后失效,必须重新应用才能再次生效。要触发这些行为,你只需将所需的标签(/tag <target> add <tag>)应用到你想要影响的实体上即可。
路线图 - 计划中的更改
- 优化并完善圆形模块
- 将现已废弃的状态迁移至 Elixir
- 添加更多数学模块函数
- 在 26.3 版本中,Mojang 通过数据存储增加了更多的数学功能,包括平方根计算、sin/cos/tan 等。由于这些函数目前尚不与计分板目标兼容,SSL 将添加额外的数学函数,允许对这些计算在分数以及存储的数据上执行。
- 距离计算模块
- 利用数学模块更新中新增的平方根函数,SSL 还将能够通过计算两点之间所画“三角形”的斜边来计算两点间的距离。虽然选择器目前可以根据实体距执行位置的距离进行过滤,但没有简便的方法来计算并存储确切的距离本身,这正是本模块旨在解决的问题。
- 操作栏标题排队
- 利用当前的操作栏系统,此修改将允许操作栏标题被“排队”,即被存储并在前一个操作栏持续时间结束后立即显示。这将更好地利用操作栏系统。
- 碰撞检测模块
- 此模块将提供可在任意位置调用的函数,以检查该位置是否与方块直接发生碰撞。当前的方块检测方法在执行坐标处存在方块时会给出误报,即使该方块实际上并未与特定的子坐标发生碰撞。
- 这将在射线投射模块中使用,以实现更精确的射线投射。
Silver Star Library
这是我长期致力于开发的一个项目,它在我的数据包项目中发挥了极大的帮助。希望对你同样有用。
For any questions or requests, the best way to reach me is through Discord (@skeleton.toast).
Silver Star Library is a development tool for datapack creators. It was originally a library I created for my own use, but its usage is not specifically catered to my own projects, and can be used across a wide variety of applications.
If you'd like an updated version of SSL for an older Minecraft version, please reach out! It is likely not too difficult for me to backport it, and I'm happy to do so, though it may take some time.
NOTE 10/09/26: If you previously installed version 26.10.08, and have not yet downloaded a later version, PLEASE DO SO. If you want to make the change on your end, the error is in the function ss_lib:load_constants. The value of #const.10 is incorrectly set to -1 on line 2.
Developers: Please note!
For many features of SSL, you will be required to invoke the ss_lib:_pre_function and ss_lib:_post_function functions. These files are designed to be run before all other functions, and after all other functions, respectively. I achieve this in my other projects by having a "core" module which invokes these functions at the proper time, but do it however you like.
This datapack is offered "as-is". I make no guarantees about the robustness or legibility of included code. Updates and patches will be offered as long as I continue to work on the project.
Features
- Score Parsing into functions
- Raycasting
- Custom potion effects (Elixir Framework)
- Easy-to-reference UUIDs (SSIDs)
- Efficient player data fetching
- Bitpacking
- Custom Gamerules
- Shorthand math functions
A full breakdown is provided on my GitHub. Information on the most important modules is provided below.
Score Parse Module
The Score Parse Module is a sub-module of SSL that takes a macro input of a scoreboard objective and a function, and outputs the value of the scoreboard objective into the target function, as a macro. For example, if a player has a Test score of 50, and they want their maximum health attribute to always match their Test score, the Score Parse Module can read their score and output a string of "50" into the target function. SPM also has the ability to prepend, append, and insert special characters, allowing scores to be converted to floats.
In essence, the Score Parse Module is used to convert scores into macro strings.
Raycast Module
The Raycast module adds a group of functions for creating raycasts, for instant straight-line block or entity detection. It allows input of how far the raycast should travel, the integer between each raycast node, and the target block, entity, or both. If the raycast succeeds, and detects the target, it will then run the specified function.
This is a recursive function. With every recursion, it steps forward a short amount, checks if any of the termination conditions are true, checks if it has reached its maximum distance, and otherwise, calls itself to continue traveling.
Custom Potion Effects / Elixir Framework
Elixir is a module that sets up the framework necessary for fully custom potion effects, including stacking applications, which is difficult to do with just scores. The Elixir Framework lets you apply an effect at any time, and intelligently orders the active applications so that they match vanilla potion effects, e.g., the application with the highest amplifier is the one that's prioritized.
Elixir is written in a way so that it can be easily accessed and used by other datapacks, without having to write anything in the Silver Star Library itself. In order to add your own custom potion effect, you need to create two functions:
- The function that is run on entities which have the custom effect active
- The function that is run when an application expires
For example, one of the preset effects, or "statuses" for clarity, is called Lightweight. The active function applies attributes that reduce gravity and knockback resistance, and the expire function removes these attributes.
A handful of preset statuses come with SSL. Feel free to use them, or delete them if you're not going to use them.
SSID
The Silver Star Identifier, or SSID, is a numerical value that is assigned to entities, that essentially gives them a UUID that can be interacted with like a score. SSIDs are an evolution on the previous URID system, and as such, they replace URIDs, which are no longer supported. An SSID is a 9-digit number assigned upon request to any entity, which is stored as a scoreboard value, and cannot be used more than once, EVER, PER WORLD. They're assigned by running the following function as the entity to be assigned: ssid:assign.
SSIDs are meant to be used as a scoreboard-based identifier for entities, which also allows global data storage on a per-entity basis. If you pass their SSID through the Parse module, and use that to create/access a data storage location, this allows for complex (as in more than just scoreboards) storage, that will only be accessed by the right entity.
Scores / Smart Score "Fetching"
SSL adds a wide array of scores that cover entity data, condition, location, and more. These scores can be called as needed through a group of "fetch" functions, which have a built-in check for whether they've already been called in the same tick. This drastically increases efficiency compared to calculating scores every tick, because it allows scores to only be calculated when necessary, and means that there won't be redundant calculations.
SSL also adds "generic" scores, along with basic integer scores. "generic" scores are meant to be assigned and used in a single function, as they act just as temporary, placeholder scores. 26 generic scores exist by default: one for each letter of the English alphabet, in the format generic_<letter> (for example, generic_k).
Constants are automatically added, from -100 to 100. These can be accessed through the value score of the phantom player #const.<number>.
The "Fetch" module is one that allows you to store player data into a score, only when needed, so as to cut down on extra processing power. Fetch functions are contained under ss_lib:fetch/, and include many commonly accessed data locations, including the player's health, their selected item, their equipped weapons and armor, and more.
The reason these Fetch functions exist is so that they can be called at any time, but if that data has already been accessed in the same tick (and assigned to the relevant score), the function will terminate without re-accessing the data, since you already have the data. This means that you could run a fetch function 10,000 times, and it would only actually fetch the player's data once. Functions that might change midway through a tick itself, such as fetching the player's health or absorption, typically have an override that allows you to re-run the function even if it has already been run this tick.
The Fetch module adds the following functions:
ss_lib:fetch/absorption
ss_lib:fetch/health
ss_lib:fetch/health_attributes
ss_lib:fetch/armor
ss_lib:fetch/attack_damage
ss_lib:fetch/attack_speed
ss_lib:fetch/fall_flying
ss_lib:fetch/fire
ss_lib:fetch/in_water
ss_lib:fetch/is_sprinting
ss_lib:fetch/item_selected
ss_lib:fetch/location
ss_lib:fetch/coordinates
ss_lib:fetch/moon_phase
ss_lib:fetch/on_ground
ss_lib:fetch/using_bow
ss_lib:fetch/using_shield
ss_lib:fetch/weapon
ss_lib:fetch/gear/armor_type
ss_lib:fetch/gear/weapon_material
ss_lib:fetch/gear/weapon_type
ss_lib:fetch/gear/weapon_weight
Binary Dissection / Bitpacking
SSL also introduces a module for "bitpacking": using an integer to store a bunch of true/false conditions by reading it as a binary number.
What this does is allows you to store up to 32 boolean conditions, 0-31, in a single score, by adding a value to the score that represents an exponential multiple of 2. For example, if you want to set condition #10 and condition #14 to true, and leave all others false, the disambiguation value would be set to 17408 (2^10 + 2^14), which can only be created when those two conditions are true. The Binary Dissection file then dissects this value, reads that conditions #10 and #14 are true, and executes functions based on those files.
This is useful mainly just for simplicity. If you want to have however many true/false conditions (for example, in one of my projects, I use it to see if players have certain "talismans" equipped), but don't want to create 32 scores or 32 tags, you can use one single score to group them all together.
Gamerule Module
This is a system designed to simulate vanilla gamerules, allowing developers to set global gamerules that they can change at will, and reference when needed. This is a good way to keep track of backend settings that apply to the world at large.
To reference a gamerule, once it's been instantiated, reference the score true (for boolean gamerules) or value (for range-based gamerules), held by the phantom player $source.gamerule.gamerule_name. Of course, replace "source" and "gamerule_name" with the relevant information for your gamerule. This might look like:
execute if score $awesomepack.gamerule.pvp_enabled run...
Players with an ssl.permissions.level score of 4 or higher can also run the command /trigger ssl.gamerule.query to see a list of SSL-base gamerules across all datapacks, their type, their range if applicable, and their current value.
Math Module
Round Function
The Rounding sub-module is used to increase precision of scores when they're divided. By default, Minecraft will always round quotients of two scores down to the nearest integer. However, the Rounding module will properly round these values instead of rounding them down every time.
The rounding module is pretty straightforward. It takes three input parameters: score, which is the scoreboard objective that will be rounded for the executing entity, round, which is the divisor for rounding purposes, and reduce, which is a boolean that determines whether or not to divide the rounded number by round at the end of calculation. If you want to round score to the nearest multiple of 7, for example, set round to 7. If you want this value to be divided by 7, set reduce to true, and otherwise, set reduce to false.
For versions 26.10.22 and later: These functions are replaced by the following functions:
math:round/int
math:round/score
math:round/up/int
math:round/up/score
math:round/down/int
math:round/down/score
Other Functions
Exponent Functions
Two new exponent functions are added, namely: math:power/integer and math:power/score. math:power/integer takes two input parameters, $(base_score) and $(exponent).
Absolute Value
The function math:absolute_value is added, that simply makes the input score positive, if it is negative. It takes one input parameter, $(score). This is extremely trivial code, but I found it nice to have a shorthand.
Digit Counter
The function math:digit_counter is added, which counts the number of digits of the input score and returns it to a specified output score. It takes two input parameters: $(input_score) and $(output_score). The number of digits in $(input_score) is written to $(output_score).
Note: An input score with a value of 0 will still return 1 digit.
Even Function
The function math:even is added, which will round the input score to an even number, if it is not already even. It takes two input parameters: $(score) and $(sign). $(score) is the name of the scoreboard objective that will be modified, and $(sign) is a string that must be either "-" or "+". This parameter specifies whether the function will round up or down.
Chance Functions
Two chance functions are added: math:chance/percentage and math:chance/score. These have a random chance to trigger your specified function, and the probability of the function triggering depends on your input.
math:chance/percentage takes two inputs: $(value) and $(function). $(value) is a float from 0.00 to 1.00, which determines the likelihood of $(function) triggering. $(function) should be the name of a function, obviously.
Similarly, math:chance/score does the same thing, only using a score instead of a hard value. This function takes three inputs: $(score), a scoreboard objective, $(max_value), which is an integer to compare the value of $(score) against, and $(function), which is the name of whatever function will be triggered, if the chance succeeds. As an example, if your objective specified by $(score) has a value of 15, and you input a value of 30 for $(max_value), then $(function) will have a 15/30 chance of triggering, or 50%.
Although math:chance/percentage is extremely basic code, I found it helpful to have a shorthand. Plus, math:chance/score needed some sort of function to pass the parsed value to.
Action Tags
SSL adds a handful of functionalities for "action tags", tags that are applied to an entity to perform code that isn't easily executable with commands. There are currently three action tags:
For SSL versions 26.09.22 or earlier:
Extinguished, Pacified, and FallDamageNegated
For SSL versions later than 26.09.22:
ssl.action.extinguish, ssl.action.pacify, and ssl.action.negate_fall_damage
The extinguish tag will immediately extinguish any entity that's currently on fire. The pacify tag will de-aggro any hostile mob, though they might re-aggro immediately if there's a target in range. The fall damage negation tag will prevent that entity from taking any fall damage the next time they touch the ground, though be aware: if this tag is applied to an entity that's currently on the ground, it will be immediately removed and have no effect.
All action tags only trigger once before they must be re-applied. To trigger these behaviors, all you need to do is apply your desired tag (/tag <target> add <tag>) to the entity you want to affect.
Roadmap - Planned Changes
- Optimize and polish circle module
- Port over now-defunct statuses to Elixir
- Additional math module functions
- In version 26.3, Mojang added more math capabilities with data storage, including square root calculation, sin/cos/tan, and a couple others. Since these functions aren't currently compatible with scoreboard objectives, additional math functions will be added to SSL that allow these calculations to be performed on scores, as well as stored data.
- Distance calculation module
- Using the square root function added in the math module update, SSL will also be able to calculate the distance between two points by finding the hypotenuse of a "triangle" drawn between those two points. Although it's currently possible for selectors to filter by entities' distance from the executing location, there's no easy way to compute and store the exact distance itself, which is what this module aims to fix.
- Actionbar title queueing
- Using the current actionbar system, this modification will allow actionbar titles to be "queued", meaning they're stored, and displayed as soon as the previous actionbar's duration runs out. This will allow for better use of the actionbar system.
- Collisions module
- This module will provide functions that can be invoked at any location, to see if that location is directly colliding with a block. The current method for block detection will give a false positive if there is a block at the executing coordinates, even if that block isn't actually colliding with the specific sub-coordinates.
- This will be used in the raycast module to allow for significantly more precise raycasting.
Silver Star Library
This is a project I've been working on for a long time, and I've found it very helpful in my datapack projects. I hope you find it to be just as useful.
评论 0
登录后参与评分
还没有评论,来抢沙发吧