Skip to content

Commit fce57e3

Browse files
authored
Merge pull request #46 from Tschipcraft/dev
v1.8.3
2 parents 3507768 + 275613d commit fce57e3

File tree

254 files changed

+4619
-76
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

254 files changed

+4619
-76
lines changed

.github/workflows/cd.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,17 @@ jobs:
7171
uses: montudor/action-zip@v1
7272
if: steps.check_datapack_folder.outputs.files_exists == 'true'
7373
with:
74-
args: zip -qq "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-datapack.zip" -r data overlay_16 overlay_33 overlay_35 overlay_disable_trim pack.mcmeta pack.png LICENSE README.md
74+
args: zip -qq "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-datapack.zip" -r . -x assets/* net/* META-INF/* fabric.mod.json unused/* src/* wiki/* CHANGES.md ".*"
7575
- name: Create mod jar file
7676
uses: montudor/action-zip@v1
7777
if: steps.check_mod_folder.outputs.files_exists == 'true'
7878
with:
79-
args: zip -qq "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-mod.jar" -r data overlay_16 overlay_33 overlay_35 overlay_disable_trim assets META-INF net fabric.mod.json pack.mcmeta pack.png LICENSE README.md
79+
args: zip -qq "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-mod.jar" -r . -x unused/* src/* wiki/* CHANGES.md ".*" "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-datapack.zip"
8080
- name: Create asset pack zip file
8181
uses: montudor/action-zip@v1
8282
if: steps.check_assets_folder.outputs.files_exists == 'true'
8383
with:
84-
args: zip -qq "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-resourcepack.zip" -r assets overlay_16 overlay_33 overlay_35 overlay_disable_trim pack.mcmeta pack.png LICENSE README.md
84+
args: zip -qq "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-resourcepack.zip" -r . -x data/* net/* META-INF/* fabric.mod.json unused/* src/* wiki/* CHANGES.md ".*" "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-datapack.zip" "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-mod.jar"
8585

8686
# Upload
8787
- name: Upload data pack version to Modrinth
@@ -95,7 +95,7 @@ jobs:
9595

9696
name: "[DP] Release v${{ github.event.inputs.tag }}"
9797
version: ${{ github.event.inputs.tag }}
98-
changelog-file: CHANGELOG.*
98+
changelog-file: CHANGES.*
9999

100100
loaders: |
101101
datapack
@@ -113,7 +113,7 @@ jobs:
113113

114114
name: "[Mod] Release v${{ github.event.inputs.tag }}"
115115
version: ${{ github.event.inputs.tag }}+mod
116-
changelog-file: CHANGELOG.*
116+
changelog-file: CHANGES.*
117117

118118
dependencies: |
119119
fabric-api(optional){modrinth:P7dR8mSH}
@@ -138,7 +138,7 @@ jobs:
138138

139139
name: "Release v${{ github.event.inputs.tag }}"
140140
version: ${{ github.event.inputs.tag }}
141-
changelog-file: CHANGELOG.*
141+
changelog-file: CHANGES.*
142142

143143
loaders: |
144144
datapack
@@ -156,7 +156,7 @@ jobs:
156156

157157
name: "Release v${{ github.event.inputs.tag }}"
158158
version: ${{ github.event.inputs.tag }}+mod
159-
changelog-file: CHANGELOG.*
159+
changelog-file: CHANGES.*
160160

161161
dependencies: |
162162
catalogue(optional){curseforge:459701}
@@ -173,7 +173,7 @@ jobs:
173173
./${{ github.event.repository.name }}-*-mod.jar
174174
175175
- name: Add changelog header for GitHub release
176-
run: sed -i '1i_Changelog:_' CHANGELOG.md
176+
run: sed -i '1i_Changelog:_' CHANGES.md
177177
- name: Upload outputs to GitHub releases
178178
uses: Kir-Antipov/mc-publish@v3.3
179179
with:
@@ -183,7 +183,7 @@ jobs:
183183

184184
name: Release v${{ github.event.inputs.tag }}
185185
version: v${{ github.event.inputs.tag }}
186-
changelog-file: CHANGELOG.md
186+
changelog-file: CHANGES.md
187187

188188
files: |
189189
./${{ github.event.repository.name }}-*.@(zip|jar)

.github/workflows/test_workflow.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Continuous Deployment (Test)
1+
name: Continuous Deployment (Build)
22
on:
33
workflow_dispatch:
44
inputs:
@@ -71,17 +71,17 @@ jobs:
7171
uses: montudor/action-zip@v1
7272
if: steps.check_datapack_folder.outputs.files_exists == 'true'
7373
with:
74-
args: zip -qq "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-datapack.zip" -r data overlay_16 overlay_33 overlay_35 overlay_disable_trim pack.mcmeta pack.png LICENSE README.md
74+
args: zip -qq "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-datapack.zip" -r . -x assets/* net/* META-INF/* fabric.mod.json unused/* src/* wiki/* CHANGES.md ".*"
7575
- name: Create mod jar file
7676
uses: montudor/action-zip@v1
7777
if: steps.check_mod_folder.outputs.files_exists == 'true'
7878
with:
79-
args: zip -qq "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-mod.jar" -r data overlay_16 overlay_33 overlay_35 overlay_disable_trim assets META-INF net fabric.mod.json pack.mcmeta pack.png LICENSE README.md
79+
args: zip -qq "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-mod.jar" -r . -x unused/* src/* wiki/* CHANGES.md ".*" "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-datapack.zip"
8080
- name: Create asset pack zip file
8181
uses: montudor/action-zip@v1
8282
if: steps.check_assets_folder.outputs.files_exists == 'true'
8383
with:
84-
args: zip -qq "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-resourcepack.zip" -r assets overlay_16 overlay_33 overlay_35 overlay_disable_trim pack.mcmeta pack.png LICENSE README.md
84+
args: zip -qq "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-resourcepack.zip" -r . -x data/* net/* META-INF/* fabric.mod.json unused/* src/* wiki/* CHANGES.md ".*" "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-datapack.zip" "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-mod.jar"
8585

8686
# Upload
8787
- name: Capture datapack build artifact

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/unused

CHANGELOG.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- **Support for Minecraft 1.21** ⚔️ (closes [#29](https://github.com/Tschipcraft/dynamiclights/issues/29), [#41](https://github.com/Tschipcraft/dynamiclights/issues/41), [#42](https://github.com/Tschipcraft/dynamiclights/issues/42), [#44](https://github.com/Tschipcraft/dynamiclights/issues/44))
2+
- Copied the contents of the legacy folders to their new names and removed unused code
3+
- Used new enchantment check format in predicates
4+
- Updated menu trigger to use advancements instead and added menu message header
5+
- Fixed performance overlay for Minecraft 1.20.2+ not having an effect
6+
- Updated LICENSE

LICENSE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ This license shall be included in all copies or substantial portions of this pro
1313

1414
Permitted Uses:
1515

16-
1. You are PERMITTED to freely use this project on singleplayer worlds and multiplayer worlds/servers in your Minecraft game.
16+
1. You are PERMITTED to freely use this project on singleplayer worlds and private multiplayer worlds/servers in your Minecraft game.
1717

18-
2. You are PERMITTED to modify this project's code for personal use or on your own private servers.
18+
2. You are PERMITTED to modify this project's code for personal use and/or for contribution to this project.
1919

2020
3. You are PERMITTED to view this project's code, take reference, and learn from it.
2121

2222
4. You are PERMITTED to create content (e.g., videos, livestreams) covering and showcasing this project on websites such as YouTube, Twitch, Instagram, TikTok, etc., or on your own website, IF you provide a prominent link back to at least one of the official download locations ([GitHub](https://github.com/Tschipcraft/dynamiclights), [CurseForge](https://www.curseforge.com/minecraft/texture-packs/tschipcrafts-dynamic-lights), [Modrinth](https://modrinth.com/datapack/dynamic-lights)) in the description or an easily accessible place. You may also monetize this content.
2323

2424
5. You are PERMITTED to include this project in your modpack, IF you link back to at least one of the official download locations ([GitHub](https://github.com/Tschipcraft/dynamiclights), [CurseForge](https://www.curseforge.com/minecraft/texture-packs/tschipcrafts-dynamic-lights), [Modrinth](https://modrinth.com/datapack/dynamic-lights)), or by simply adding this project in the embedded or included mods sections directly on Modrinth and/or CurseForge.
2525

26-
6. You are PERMITTED to use parts or the whole project in your own project (Mod, Data Pack, Resource Pack, Map, Server, etc.), IF you obtain explicit permission from the creator (Tschipcraft) first. To request permission, please contact me via email at tschipcraft@gmail.com or message me directly on Planet Minecraft (https://www.planetminecraft.com/account/pms/new/tschipo), CurseForge (https://legacy.curseforge.com/private-messages/send?recipient=tschipcraft), or Discord (@tschipo) and include detailed information about your intentions.
26+
6. You are PERMITTED to use parts or the whole project in your own project (Mod, Data Pack, Resource Pack, Map, Public Server, etc.), IF you obtain explicit permission from the creator (Tschipcraft) first. To request permission, please contact me via email at tschipcraft@gmail.com or message me directly on Planet Minecraft (https://www.planetminecraft.com/account/pms/new/tschipo), CurseForge (https://legacy.curseforge.com/private-messages/send?recipient=tschipcraft), or Discord (@tschipo) and include detailed information about your intentions.
2727

2828

2929
Prohibited Uses:

README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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.20x
12+
> A server-side data pack/mod for Minecraft 1.17x-1.21x
1313
1414
<details>
1515
<summary>YouTube showcase</summary>
@@ -22,16 +22,12 @@
2222

2323
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)
2424

25-
**Supported Items:** Torches, Lanterns, Campfires, Glowstone, Glowstone Dust, Blaze Rods, Blaze Powder, Spectral Arrows, Lava Buckets, Sea Lanterns, Prismarine Crystals, Froglights, Glow Ink Sacs, Glow Berries, Glow Item Frames, Glow Lichen, Jack o'Lanterns, Shroomlights, End Rods, End Crystals, Fire Charge, Amethyst Shards, Nether Stars, Ender Chests and Beacons
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.
2627

27-
Additionally, all enchanted items will emit light level 6 while Fire Aspect, Riptide or Channeling enchanted items emit light level 9.
28+
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.
2829

29-
**Supported Entities:** Allays, Glow Squids, Glow Item Frames, Blazes, TNT, End Crystals, Fireballs, Spectral Arrows, Shulker Bullets, Firework Rockets and Flying Wither Skulls
30-
31-
Since this project is completely server-side, players joining a server with Dynamic Lights installed do not have to install anything on their end for it to work! Nontheless, you can still use the mod on
32-
the client for singleplayer worlds only. Joining a server that has not installed Dynamic Lights will have no effect.
33-
34-
[➜ For available settings and planned features, take a look at the wiki](https://github.com/Tschipcraft/dynamiclights/wiki)
30+
[➜ For a detailed overview and available settings, take a look at the wiki](https://github.com/Tschipcraft/dynamiclights/wiki)
3531

3632

3733
## Installation
@@ -46,7 +42,7 @@ Also available on Modrinth and CurseForge!
4642
<picture>
4743
<source height="72px" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/Tschipcraft/badges/main/assets/modrinth-badge-dark.svg">
4844
<source height="72px" media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/Tschipcraft/badges/main/assets/modrinth-badge-light.svg">
49-
<img height="72px" alt="Download on Modrinth" src="https://raw.githubusercontent.com/modrinth/art/main/Branding/Badge/badge-dark.svg">
45+
<img height="72px" alt="Download on Modrinth" src="https://raw.githubusercontent.com/Tschipcraft/badges/main/assets/modrinth-badge-dark.svg">
5046
</picture>
5147
</a>
5248
<a href="https://www.curseforge.com/minecraft/texture-packs/tschipcrafts-dynamic-lights">
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
##by Tschipcraft
2+
# Places a dynamic light block with light level 12 near the provided location (~ ~ ~) that will disappear after 1 tick
3+
# Additionally sets the score #check_passed ts.dl.temp to 1
4+
5+
scoreboard players set #check_passed ts.dl.temp 1
6+
7+
function dynamiclights:internal/place_light/12/exec
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
##by Tschipcraft
2+
# Places a dynamic light block with light level 15 near the provided location (~ ~ ~) that will disappear after 1 tick
3+
# Additionally sets the score #check_passed ts.dl.temp to 1
4+
5+
scoreboard players set #check_passed ts.dl.temp 1
6+
7+
function dynamiclights:internal/place_light/15/exec
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
##by Tschipcraft
2+
# Places a dynamic light block with light level 3 near the provided location (~ ~ ~) that will disappear after 1 tick
3+
# Additionally sets the score #check_passed ts.dl.temp to 1
4+
5+
scoreboard players set #check_passed ts.dl.temp 1
6+
7+
function dynamiclights:internal/place_light/3/exec

0 commit comments

Comments
 (0)