此模组会让狐狸和玩家在食用发光浆果或其他能令玩家发光的物品时发出光芒。很简单对吧?这本来就该是原版的功能,不过现在你可以选择这样玩了!

与其他人在服务器上一起游玩是体验此模组的最佳方式,因此你可以在 Nodecraft 上使用代码 EMALIGHTDEV 获取折扣!
配置
Fabric
你可以使用游戏内规则 foxGlowDuration 调整发光效果的持续时间。该参数接受一个数值,单位为秒(不支持小数)。
/gamerule foxGlowDuration <duration>
例如,设置为 2 秒:
/gamerule foxGlowDuration 2
你可以使用 doPlayersGlow 切换玩家是否发光。值为 true 时启用效果,false 时禁用效果。默认情况下为启用状态。
/gamerule doPlayersGlow <true/false>
例如,禁用该效果:
/gamerule doPlayersGlow false
与此类似,还有 customColorGlow 用于决定发光效果是否具有自定义颜色,以及另一个 customColorGlow(注:原文此处可能有误,通常应为不同名称的规则,但按原文翻译)用于决定上述自定义颜色是否为随机生成。(这两个功能均需要安装 ColoredGlowLib 才能生效)
若要向可让狐狸/玩家发光的物品列表中添加新物品,请使用以下命令:
/foxglow addGlowFood <item>
其中 <item> 为物品的命名空间 ID。例如,要使金苹果成为“发光食物”,请输入:/foxglow addGlowFood minecraft:golden_apple
有趣的是,它支持其他模组的物品!!!如果你有一个添加了发光浆果汁或其他类似物品的模组,你也可以像这样添加它们!
顺便一提,如果你是开发者,可以使用 FoxGlow.addGlowFood(Item item) 方法在默认情况下将你的模组物品加入列表。(代码中包含 Javadocs 文档)
若要移除这些物品,你可以使用 /foxglow removeGlowFood <item>,开发者同样适用:FoxGlow.removeGlowFood(Item item)
Forge
与 Fabric 版本相同,但由于 Forge 处理游戏内规则较为混乱(至少目前如此),你需要使用 /foxglow set <gamerule> <value> 和 /foxglow get <gamerule> 来管理游戏内规则。
例如,要将 foxglowDuration 规则设置为 100,你需要执行:
/foxglow set foxglowDuration 100
(将物品添加到可让狐狸/玩家发光的列表中的操作完全相同,请向上滚动查看)
另外,值得一提的是,在世界创建界面中也提供了一些游戏内规则的本地化文本。
安装
只需将其放入你的 mods 文件夹中,并附带安装 Fabric API。 如果你想要自定义发光颜色,请安装 ColoredGlowLib。 此外,如果你愿意,此模组可以仅安装在服务器上,客户端并非必需。

许可证
本模组遵循 MIT 许可证发布。
支持我
这确实是一个非常简单的模组,但如果你愿意请我喝杯咖啡,欢迎支持。
对于整合包开发者:你无需直接询问即可使用此模组,但请在某处注明我的贡献,这将对我有所帮助!(另外,我有点好奇,所以当你将此模组纳入整合包时,也许可以给我发条消息,我很想看看你的作品)
This mod makes foxes and players glow when they eat Glow Berries, or other items that should make the player glow! Simple right? This should be in vanilla, anyway you can have it this way now!

The best way to enjoy this mod is with other people on a server, so you can use the code EMALIGHTDEV on Nodecraft for discount!
Configuration
Fabric
You can adjust the duration of the glow effect using the gamerule foxGlowDuration. It takes one parameter which is the duration in seconds. (Without decimals)
/gamerule foxGlowDuration <duration>
For example, 2 seconds would be
/gamerule foxGlowDuration 2
You can toggle the effect for players using doPlayersGlow. The value true will enable the effect, false will disable it. It is active by default.
/gamerule doPlayersGlow <true/false>
For example, to disable the effect
/gamerule doPlayersGlow false
Similar to this one, there also are the customColorGlow which determines weather or not they glow effect should have a custom color, and customColorGlow which determines weather the custom colored above should be random or not. (both of which require ColoredGlowLib to work)
To add an item to the list of items that can make foxes/player glow when eaten you will need to use the commmand:
/foxglow addGlowFood <item>
Where <item> is the namespace of something, for example to make Golden Apples a "glowfood" you will do this: /foxglow addGlowFood minecraft:golden_apple
The cool thing is that it support other mod's items as well!!!, so if you have a mod that adds a Glow Berry juice or something, you can add it like that!
On this note, if you are a developer, you can use the FoxGlow.addGlowFood(Item item) method to add your mod's items by default. (Javadocs are present in the code)
The remove the items, you can use /foxglow removeGlowFood <item>, same thing for devs: FoxGlow.removeGlowFood(Item item)
Forge
It's the same as on fabric but you have to use the /foxglow set <gamerule> <value> and /foxglow get <gamerule> for the gamerules, because working with gamerules with forge is kind of a mess, at least for now.
For example, to set the foxglowDuration rule to 100, you will need to do this:
/foxglow set foxglowDuration 100
(The adding items to the list of items that can make foxes/player glow when eaten is exactly the same so scroll above)
Also, as side note there also are some localizations of the gamerules in the World Creation screen.
Setup
Just drop it inside your mods folder alongside Fabric API. If you want to custom glow colors, install ColoredGlowLib Also this mod can be installed only on the server if you wish, you don't necesserly need it on the client.

License
This mod is available under the MIT License.
Support me
This really is a stupidly simple mod, but still, if you would like to offer me a coffee, here you go.
Thanks to JustFoxx, Dqu1J for translations
For modpack devs: You are permitted to use this mod without directly asking, but please credit me somewhere, it would help! (Also, i'm kind of a curios person so maybe send me a message when you include it into your modpack and i'd like to check it out)
下载 FoxGlow
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FoxGlow
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FoxGlow
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FoxGlow
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FoxGlow
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FoxGlow
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FoxGlow
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FoxGlow
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FoxGlow
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FoxGlow
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 已更新至 1.21.2-1.21.5
- 游戏规则
doPlayersGlow已被替换为doesEveryonGlow,因为其他非玩家和非狐狸实体也可能食用发光浆果并获得发光效果
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧