跳到正文

Dynamic Lights

作者:CreepermeYT

An OPTIMIZED cross-platform fully server-side datapack/mod that brings dynamic lights to your world!

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Dynamic Lights Logo

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

an image showing all the glowing features mentioned above

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

A picture of the built-in Chat 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 支持哪些 Minecraft 版本?

Dynamic Lights 支持 Minecraft Java 版 1.17–26.3,共 34 个版本,可用的加载器:Fabric / Forge / NeoForge / Quilt。下载时注意选择和你游戏版本一致的文件。

Dynamic Lights 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分

CreepermeYT 的其他作品

查看全部 →