
Dynamic Lights By CreepermeYT
一款经过优化的、跨平台的、完全基于服务器的数据包/模组,为你的世界带来动态光源!
发光特性
- 所有物品
- 着火的生物实体
- 点燃的TNT
- 发光鱿鱼
- 拥有发光效果的生物实体
- 所有悦灵
- 附魔的物品与护甲

服务器端优势
这个原生数据包(由 Modrinth 打包为模组形式)是完全基于服务器端的,从而带来以下优势:
- 安装一次,服务器上的所有人都可以使用!
- 跨平台支持,只要安装在 Java 版服务器上,即可同时支持 Java 版和基岩版!
- 专门为服务器优化,对性能的影响极小!
(速度比类似的数据包快50%)
警告:除非在服务器端安装,否则此数据包/模组在多人游戏中无法正常工作。
配置菜单

有一个内置的聊天配置菜单。你可以通过运行以下命令来打开它:(你需要拥有 OP 权限)
/function #dynamic_lights_by_creepermeyt:config
在菜单中,你可以:
- 设置以下任何预设:
- 'FASTEST'(最快)仅火把具有动态光源
- 'OPTIMIZED'(优化)启用所有功能,并经过优化
- 'SMART'(智能)(默认且推荐)启用所有功能,修复光照错误
- 打开切换选项菜单,你可以在其中:
- 单独**[开启 / 关闭]**各项发光特性
- 查看当前有多少个活跃光源
- 选择'卸载'以在从 datapacks 文件夹中移除该数据包之前禁用所有动态光源
注意事项
关于此数据包的五点说明:
- 为了防止对刷怪塔产生负面影响,只有当附魔物品和护甲距离玩家小于 24 格时才会发光。
- 出于优化目的,点燃的 TNT、拥有发光效果或着火的生物实体、发光鱿鱼以及悦灵,只有在距离玩家小于 48 格时才会发光。
- 出于优化目的,点燃的 TNT 最多只会生成 48 个动态光源(即使有更多的 TNT)。
- 只要物品距离玩家 96 格以内,所有物品都会发光。
- 除了不重要(如光等级为 1 或 3)的物品外,所有物品都应该发光。
使用“光方块”的所有动态光源数据包都面临相同的限制:
- 除非在服务器端安装,否则该数据包/模组在多人游戏中无法正常工作
- 光方块/动态光源不能放置在无碰撞方块或流动的水中。
- 光方块/动态光源可能会干扰水或岩浆的正常流动。
- 光方块会阻碍活塞的运动,并可能导致 TNT 复制器失效。
- 如果带有动态光源的玩家经过,地图制作者放置的光方块会被清除。
- 由于光方块的性质,动态光源看起来会是块状的,运动也不流畅。
自定义性
(这部分内容旨在供其他数据包创作者/开发者使用)
我们设计了以下功能,以允许对此数据包的开放自定义。你可以在 MIT 许可条件下自由将其用于你自己的项目。
此数据包包含一个 #dynamic_lights_by_creepermeyt:custom.compatibility 函数标签(function tag),它会在动态光源算法处理给定刻(tick)的光源之前即时运行。在 '/function/compatibility' 文件夹下,可以找到示例文件 compatibility.mcfunction,其中包含在你的自定义函数中访问动态光源算法的示例命令,之后你可以将这些命令添加到该函数标签中。这些示例命令和函数标签可以随意使用,以利用此数据包生成你自己的自定义动态光源或附加组件。你可以设置自己的条件、位置、光等级,甚至添加其他数据包兼容性。compatibility.mcfunction 文件本身提供了展示如何实现这些功能的示例。

Dynamic Lights By CreepermeYT
An OPTIMIZED cross-platform fully server-side datapack/mod that brings dynamic lights to your world!
Glowing Features
- All Items
- Entities on Fire
- Lit TNT
- Glow Squids
- Entities with Glowing effect
- All Allays
- Enchanted Items & Armor

Server-side Advantages
This native datapack (packaged as a mod by modrinth) is fully server-side which brings the following advantages:
- Install it once, works for everyone on the server!
- Cross-platform, Java & Bedrock are supported as long as it is installed on a java server!
- Specifically optimized for servers, with minimal impact on performance!
(Up to 50% faster than similar datapacks)
Warning: This datapack/mod will not work in multiplayer unless it is installed server-side.
Config Menu

There is a built-in chat config menu. You can open it by running the following command: (you need to be OP)
/function #dynamic_lights_by_creepermeyt:config
In the menu, you can:
- Set any of the following PRESETS:
- 'FASTEST' Only torches have dynamic lights
- 'OPTIMIZED' All features enabled, optimized
- 'SMART' (Default & Recommended) All features enabled, fixes lighting bugs
- Open the Toggle Options Menu where you can:
- Toggle [ ON / OFF ] the glowing features individually
- See how many Active Lights there are
- 'Uninstall' to disable all dynamic lights before you remove the datapack from the datapacks folder
Keep in mind
Five clarifications about this datapack:
- Enchanted Items & Armor will only glow if they are less than 24 blocks away from a player to prevent negative effects on mob farms.
- Lit TNT, Entities with Glowing Effect or on Fire, Glow Squids, and Allays will only glow if they are less than 48 blocks away from a player, for optimization purposes.
- Lit TNT will generate a maximum of 48 dynamic lights (even if there is more TNT), for optimization purposes.
- All items will glow as long as they are within 96 blocks away from a player
- All items should glow with the exception of non-important ones like those with light levels of 1 or 3.
All dynamic lights datapacks using 'light blocks' face these same limitations:
- The datapack/mod will not work in multiplayer unless it is installed server-side
- Light blocks / Dynamic lights cannot be placed inside no-collision blocks or flowing water.
- Light blocks / Dynamic lights might interfere with the normal flow of water or lava.
- Light blocks / Dynamic lights will clog piston movements and might break TNT dupers.
- Light blocks from map makers will get erased if a player with dynamic lights passes by.
- Dynamic lights will look blocky and not fluid in motion because of the nature of light blocks.
Customizability
(This part is intended for other datapack creators/developers)
The following feature was made to allow the open customizability of this datapack. Feel free to utilize it for your own projects under the MIT Licensing conditions.
This datapack has a #dynamic_lights_by_creepermeyt:custom.compatibility function tag, which runs just in time before the dynamic lights algorithm processes lights for a given tick. Under the '/function/compatibility' folder, a compatibility.mcfunction example file can be found with example commands to access the dynamic light algorithm in your own functions, which you can later add to the function tag. These example commands and function tag can be used at will to generate your own custom dynamic lights or add-ons using this datapack. You are able to set your own conditions, locations, light levels, and even add other datapack compatibility. Some examples showing how to do this are provided inside the compatibility.mcfunction itself.
下载 Dynamic Lights
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Dynamic Lights
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Dynamic Lights
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Dynamic Lights
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Dynamic Lights
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Dynamic Lights
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Dynamic Lights
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Dynamic Lights
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Dynamic Lights
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Dynamic Lights
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
新增内容:
- 添加了 MC 26.3 支持
- 物品加载动画带有动态灯光效果
修改内容:
- 改进了 OVERLOADED(过载)检查,以检测不完整的刻。如果检测到过载,此检查现在将永久禁用远离玩家的物品。
- 对发光和火焰物品的微优化。这些物品将不再参与动态灯光计算。
已修复的 Bug:
- 处于旁观者模式的玩家如果在切换为旁观者之前手持发光物品或附魔盔甲,仍会在其位置生成飞行中的动态灯光。
- 当动态灯光数量过多时,“切换预设”功能无法正常工作。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
数据包
此数据包添加了属于阿瓦里海盗的独特结构,将他们的独特风格带入你的 Minecraft 世界!兼容性:1.20 至 26.3
数据包
一个 Minecraft 光线投射库,能够精确检测玩家正在查看的方块,包括像台阶和楼梯这样的特殊方块形状。
数据包
此数据包添加了新的“祝福模式”难度。
数据包
添加了基于官方概念图的蓝蛙和红眼树蛙变体。
数据包
允许服务器管理员方便地禁用 Xaero's Map 系列模组中的实体雷达、小地图等功能,使竞技游戏更加公平。
数据包
使用原版/生存友好的方法更改青蛙的变种类型。支持原版(寒冷、温带、温暖)以及可选的“More Frogs 2”变种:深红、末影、地狱、毒镖、紫珀、幽匿、灵魂、诡异和木头。
评论 0
登录后参与评分
还没有评论,来抢沙发吧