Skip to content

Commit 80b2f87

Browse files
authored
Merge pull request #77 from Tschipcraft/dev
v1.8.7
2 parents 869af9a + 98cdb49 commit 80b2f87

File tree

6 files changed

+27
-34
lines changed

6 files changed

+27
-34
lines changed

CHANGES.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,2 @@
1-
- **Added support for Minecraft 1.21.5** 🌸
2-
- Updated to work with the new text component format
3-
- Updated block placement commands to use the new `strict` argument, removing the restriction to avoid most block update affected blocks, such as falling blocks
4-
- **Added native NeoForge support**
5-
- Improved piston detection to search for slime blocks in all directions. This resolves an issue where some zero-tick piston contraptions would break (closes [#51](https://github.com/Tschipcraft/dynamiclights/issues/51))
6-
- Fixed chat flooding when triggering the menu in Minecraft 1.20.6 or below (closes [#66](https://github.com/Tschipcraft/dynamiclights/issues/66))
7-
- Added additional data to Dynamic Lights' marker entities to display a name when [Axiom](https://modrinth.com/mod/N6n5dqoA) is installed ([#19](https://github.com/Tschipcraft/dynamiclights/issues/19))
8-
- Added additional failsafes for menu interactions ([#70](https://github.com/Tschipcraft/dynamiclights/issues/70))
9-
- Improved performance slightly by switching to `sort=arbitrary` to allow entity selector short-circuiting
10-
- Annotated the required Java version for mod versions
11-
- Added Argentine Spanish (`es_ar`) language support (Thanks @Texaliuz)
1+
- **Added support for Minecraft 1.21.6** ☁️
2+
- Fixed 1.21.5 NeoForge crash when installed alongside MidnightLib

README.md

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
<h1 align="center">
22
<img alt="Icon" src="pack.png" width="96" height="96" style="image-rendering: pixelated"><br/>
3-
Dynamic Lights
3+
Tschipcraft's Dynamic Lights
44
</h1>
55
<p align="center">
66
<a href="https://github.com/Tschipcraft/dynamiclights/stargazers"><img alt="GitHub Stars" src="https://img.shields.io/github/stars/Tschipcraft/dynamiclights?colorA=0c0906&colorB=fbc703&style=for-the-badge"></a>
7-
<a href="https://www.curseforge.com/minecraft/texture-packs/tschipcrafts-dynamic-lights"><img alt="CurseForge Downloads" src="https://img.shields.io/curseforge/dt/831385?logo=curseforge&label=CurseForge&colorA=0c0906&colorB=fbc703&style=for-the-badge"></a>
7+
<a href="https://www.curseforge.com/minecraft/mc-mods/tschipcrafts-dynamic-lights-mod"><img alt="CurseForge Downloads" src="https://img.shields.io/curseforge/dt/910095?logo=curseforge&label=CurseForge&colorA=0c0906&colorB=fbc703&style=for-the-badge"></a>
88
<a href="https://modrinth.com/datapack/dynamic-lights"><img alt="Modrinth Downloads" src="https://img.shields.io/modrinth/dt/dynamic-lights?label=Modrinth&colorA=0c0906&colorB=fbc703&style=for-the-badge&logo=modrinth"></a>
99
<a href="https://github.com/Tschipcraft/dynamiclights/releases/latest"><img alt="GitHub Downloads" src="https://img.shields.io/github/downloads/Tschipcraft/dynamiclights/total?logo=github&colorA=0c0906&colorB=fbc703&style=for-the-badge"></a>
1010
</p>
1111

12-
> A server-side data pack/mod for Minecraft 1.17x-1.21x
13-
14-
<details>
15-
<summary>YouTube showcase</summary>
16-
<a href="http://www.youtube.com/watch?v=bzmqpgfQ7jo">
17-
<img alt="Dynamic Lights thumbnail" width=50% src="https://tschipcraft.ddns.net/mod_resources/youtube_preview.php?id=bzmqpgfQ7jo" title="Watch on YouTube">
18-
</a>
19-
</details>
12+
> Server-side dynamic lighting for Minecraft 1.17-1.21x, available as a data pack or mod
2013
2114
## Features
2215

23-
Supported entities and items such as torches or lanterns will emit light by using the light block added in 21w13a. Because of this, the dynamic lights are limited to the block grid. (see [#9](https://github.com/Tschipcraft/dynamiclights/issues/9) for more information)
16+
This data pack/mod brings **dynamic lighting** to Minecraft without any client-side requirements. Supported entities and items (like torches, glowstone, or enchanted gear), held or worn by players, mobs, or placed in item frames, will emit real light as they move, using the [light block](https://minecraft.wiki/w/Light_(block)) added in Snapshot 21w13a. Because of this, the dynamic lights are limited to the block grid. (see [#9](https://github.com/Tschipcraft/dynamiclights/issues/9) for more information)
2417

25-
Some items are water sensitive and only turn off or on inside water. Additionally, all enchanted items will emit light level 6 while some enchants under certain conditions emit light level 9.
26-
For a detailed overview of all supported items and entities, take a look at the wiki pages linked below.
18+
* [**47+ supported vanilla items**](https://github.com/Tschipcraft/dynamiclights/wiki/Supported-Items) out of the box
19+
* **Multiple light levels**: 3, 6, 9, 12, and 15
20+
* **Water-sensitive behavior** for some items
21+
* **Enchanted items** glow by default (light level 6), with special cases for Fire Aspect, Riptide, Channeling (light level 9)
22+
* **Amethyst-trimmed armor** emits light
23+
* **Mobs, falling blocks, and display entities** can emit light if carrying a supported item
24+
* **Curios API support** for modded inventory slots
2725

2826
Since this project is completely server-side, players joining a server with Dynamic Lights installed will not need to install anything on their end for it to work! However, you can still use the mod version on the client for single-player worlds only. Joining a server that does not have Dynamic Lights installed will have no effect.
2927

30-
[➜ For a detailed overview and available settings, take a look at the wiki](https://github.com/Tschipcraft/dynamiclights/wiki)
31-
28+
[➜ For a complete list of supported items & entities, and available settings, take a look at the wiki](https://github.com/Tschipcraft/dynamiclights/wiki)
3229

3330
## Installation
3431

35-
Download the latest release from [here](https://github.com/Tschipcraft/dynamiclights/releases/latest) and put the datapack zip file into the `datapacks` folder of your Minecraft world.
32+
[Download the latest release](https://github.com/Tschipcraft/dynamiclights/releases/latest) and install either as:
3633

37-
This data pack is also available as a mod with an additional global config file and settings menu when installed alongside [MidnightLib](https://modrinth.com/mod/midnightlib). Download the latest release and put the mod .jar file into your `.minecraft/mods` folder.
34+
* **Data Pack** ➜ Place `.zip` in your world's `datapacks` folder
35+
* **Mod** ➜ Drop into your `mods` folder and optionally install [MidnightLib](https://modrinth.com/project/codAaoxh) for a global config file and UI
36+
37+
To manage settings, reset, or uninstall the pack, use `/trigger tschipcraft.menu` or `/function #tschipcraft:menu`.
3838

3939
Also available on Modrinth and CurseForge!
4040

@@ -45,7 +45,7 @@ Also available on Modrinth and CurseForge!
4545
<img height="72px" alt="Download on Modrinth" src="https://raw.githubusercontent.com/Tschipcraft/badges/main/assets/modrinth-badge-dark.svg">
4646
</picture>
4747
</a>
48-
<a href="https://www.curseforge.com/minecraft/texture-packs/tschipcrafts-dynamic-lights">
48+
<a href="https://www.curseforge.com/minecraft/data-packs/tschipcrafts-dynamic-lights">
4949
<picture>
5050
<source height="72px" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/Tschipcraft/badges/main/assets/curseforge-badge-dark.svg">
5151
<source height="72px" media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/Tschipcraft/badges/main/assets/curseforge-badge-light.svg">
@@ -57,6 +57,8 @@ Also available on Modrinth and CurseForge!
5757

5858
Development builds are available on [GitHub Actions](https://github.com/Tschipcraft/dynamiclights/actions/workflows/ci.yml). These builds are not guaranteed to be stable and may contain bugs. Please always back up your world before using them.
5959

60-
## Manage
60+
## Compatibility
61+
62+
This data pack implements the [Smithed](https://wiki.smithed.dev/conventions/) and essential [MC Datapacks Discord Server](https://mc-datapacks.github.io/en/conventions/index.html) Conventions to ensure data pack compatibility.
6163

62-
To open the ingame menu, execute `/trigger tschipcraft.menu` or `/function #tschipcraft:menu`. There is a **Reset** and an **Uninstall** button.
64+
Light blocks used for dynamic lighting may conflict with **piston mechanics** in some redstone contraptions. Please [report issues](https://github.com/Tschipcraft/dynamiclights/issues) if you find any.

data/dynamiclights/function/internal/version_checker/start.mcfunction

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
scoreboard objectives add ts.dl.version dummy
44
execute store result score $global ts.dl.version run data get entity @r DataVersion
5-
execute unless score $global tvc_ignore matches 1 if score $global ts.dl.version matches 4400.. run tellraw @a [{"text":"[Dynamic Lights] ","color":"gray"},{"text":"?","bold":true,"color":"gold"},{"text":" Future unknown Minecraft version above 1.21.5 detected! This data pack/mod may not work correctly anymore! Please make sure to check for updates in the menu! (","color":"gold"},{"text":"/trigger tschipcraft.menu","underlined":true,"color":"gold","click_event":{"action":"run_command","command":"trigger tschipcraft.menu"},"hover_event":{"action":"show_text","value":"Click here","text":"Click here"}},{"text":")","color":"gold"}]
5+
execute unless score $global tvc_ignore matches 1 if score $global ts.dl.version matches 4500.. run tellraw @a [{"text":"[Dynamic Lights] ","color":"gray"},{"text":"?","bold":true,"color":"gold"},{"text":" Future unknown Minecraft version above 1.21.6 detected! This data pack/mod may not work correctly anymore! Please make sure to check for updates in the menu! (","color":"gold"},{"text":"/trigger tschipcraft.menu","underlined":true,"color":"gold","click_event":{"action":"run_command","command":"trigger tschipcraft.menu"},"hover_event":{"action":"show_text","value":"Click here","text":"Click here"}},{"text":")","color":"gold"}]
66
# Note: 1.17x-1.20x uses the old folder names (function -> functions)
77

88
# Announce escape sequence handling changes
0 Bytes
Binary file not shown.

pack.mcmeta

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "dynamiclights",
33
"pack": {
44
"pack_format": 15,
5-
"supported_formats": [7,71],
5+
"supported_formats": [7,80],
66
"description": "Tschipcraft's Dynamic Lights \n└ v${version} ● mc${mc_human_version_range}"
77
},
88
"overlays": {

src/main/java/net/tschipcraft/dynamiclights/neoforge/Init.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void onServerStarted(ServerStartedEvent event) {
5151
// Use MidnightLib features
5252
LOGGER.info("[Dynamic Lights] MidnightLib detected!");
5353
// Build config class
54-
Config.init(MODID, Config.class);
54+
MidnightConfig.init(MODID, Config.class);
5555
// Initialize config screen
5656
modContainer.registerExtensionPoint(IConfigScreenFactory.class,
5757
(Supplier<IConfigScreenFactory>) () -> (client, parent) ->

0 commit comments

Comments
 (0)