关于
HexJS 是一个将 Hexcasting(六边形施法)与 KubeJS 集成的模组,专为整合包制作人和服务器管理员设计。
功能
白名单和黑名单
服务器和每个玩家都拥有各自可施展的法术列表,该列表可以是白名单或黑名单。(默认为空黑名单)
玩家专属列表是持久保存的,而全局列表则不是。 如果存在冲突,玩家专属列表优先。
提示:针对正数或负数禁用基础数字字面量(0),将阻止所有该类型的数字。
重定向
服务器和每个玩家都拥有各自的重定向列表,用于将绘制出的法术重定向到另一个法术,此过程在白名单和黑名单之后处理。
仅执行一次传递,因此很容易交换两个法术的效果。 如果存在冲突,玩家专属重定向优先。
自定义法术
这可能是大多数用户关注的内容,即完全在 KubeJS 内部制作自己的法术和咒语的能力!
这分为两部分:首先注册一个具有名称等属性的法术,然后在 registeredPatternCastEvent 中检查被施展的法术是否为所注册的那个以执行逻辑。这可用于覆盖现有法术。
预附魔施法物品
创建带有预附魔咒语和媒介的密语符、饰品和神器!
这可用于战利品箱、生物掉落物等!
强制施法
从 KubeJS 中以任意玩家的身份施展任何法术列表!
这可用作代理,也可让 CarpetMod 生成的假人施展法术!
其他
-
能够创建自定义古代卷轴。
-
能够从 KubeJS 获取伟大法术的角度签名。
-
能够为 Bookkeeper's Gambit(书记官的赌注)设置最大长度。(全局和/或按玩家设置,如同白名单和黑名单那样)
免责声明
由于我的大部分测试均在 Fabric 上进行,该模组的 Forge 版本可能存在更多错误。
请在 GitHub 上报告您发现的任何错误。提前感谢您的支持!
About
HexJS is a mod integrating Hexcasting and KubeJS for modpack makers and server owners.
Features
Whitelists and Blacklists
The server and each player has their own list of patterns they can cast, this list can either be a whitelist, or a blacklist. (Default is an empty blacklist)
The per-player lists are persistent, while the global list is not. If there is a conflict, the per-player list takes priority.
Tip: Blocking the base number literal (0) for either positive or negative numbers will block all numbers of that type
Redirects
The server and each player has their own list of redirects which redirect a drawn pattern to another pattern, this is handled after the whitelists and blacklists.
Only 1 pass is done so it is easily possible to swap the effects of 2 patterns. If there is a conflict, the per-player redirect takes priority.
Custom Patterns
This is probably what most of you are here for, the ability to make your own patterns and spells, all from inside KubeJS!
This happens in 2 parts, first you register the pattern with a name and such, and then you check if the pattern in question was the one cast in the registeredPatternCastEvent to do your logic. This can be used to override existing patterns.
Pre-Imbued Casting Items
Create cyphers, trinkets, and artifacts with pre-imbued spells and media!
This can be used for loot chests, mob drops, and more!
Force Casting
Cast any list of patterns as any player from KubeJS!
This can be used for proxies as well as making fake players from CarpetMod cast spells!
Misc
-
Ability to create custom ancient scrolls.
-
Ability to get the angle signature of Great Spells from KubeJS.
-
Ability to set a max length for Bookkeeper's Gambit. (Global and/or Per-Player, as per Whitelists and Blacklists)
Disclaimer
Due to most of my testing happening on Fabric, there may be a lot more bugs on the Forge version of this mod.
Please do report any bugs you find on the Github. Thank you in advance!
下载 HexJS
下载 HexJS
下载 HexJS
下载 HexJS
下载 HexJS
下载 HexJS
此更新修复了自定义图案消耗系统中的疏漏,该漏洞曾导致玩家在无法支付法术费用时能够无限施法。
变更:
- 从
registeredPatternCastEvent中移除了getCost方法。 - 从
registeredPatternCastEvent中移除了setCost方法。 - 从
registeredPatternCastEvent中移除了setCostInDust方法。 - 向
registeredPatternCastEvent添加了tryConsumeMedia方法,该方法接收一个表示要消耗的媒介数量的整数参数,并返回一个整数,代表未能按请求数量成功消耗的媒介量(如果足够则返回 0),或者因缺乏适当大小的容器而过度消耗时返回负数。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
评论 0
登录后参与评分
还没有评论,来抢沙发吧