Skip to content

Commit

Permalink
Merge pull request #46 from Tschipcraft/dev
Browse files Browse the repository at this point in the history
v1.8.3
  • Loading branch information
Tschipcraft authored Jul 10, 2024
2 parents 3507768 + 275613d commit fce57e3
Show file tree
Hide file tree
Showing 254 changed files with 4,619 additions and 76 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,17 @@ jobs:
uses: montudor/action-zip@v1
if: steps.check_datapack_folder.outputs.files_exists == 'true'
with:
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
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 ".*"
- name: Create mod jar file
uses: montudor/action-zip@v1
if: steps.check_mod_folder.outputs.files_exists == 'true'
with:
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
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"
- name: Create asset pack zip file
uses: montudor/action-zip@v1
if: steps.check_assets_folder.outputs.files_exists == 'true'
with:
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
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"

# Upload
- name: Upload data pack version to Modrinth
Expand All @@ -95,7 +95,7 @@ jobs:

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

loaders: |
datapack
Expand All @@ -113,7 +113,7 @@ jobs:

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

dependencies: |
fabric-api(optional){modrinth:P7dR8mSH}
Expand All @@ -138,7 +138,7 @@ jobs:

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

loaders: |
datapack
Expand All @@ -156,7 +156,7 @@ jobs:

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

dependencies: |
catalogue(optional){curseforge:459701}
Expand All @@ -173,7 +173,7 @@ jobs:
./${{ github.event.repository.name }}-*-mod.jar
- name: Add changelog header for GitHub release
run: sed -i '1i_Changelog:_' CHANGELOG.md
run: sed -i '1i_Changelog:_' CHANGES.md
- name: Upload outputs to GitHub releases
uses: Kir-Antipov/[email protected]
with:
Expand All @@ -183,7 +183,7 @@ jobs:

name: Release v${{ github.event.inputs.tag }}
version: v${{ github.event.inputs.tag }}
changelog-file: CHANGELOG.md
changelog-file: CHANGES.md

files: |
./${{ github.event.repository.name }}-*.@(zip|jar)
8 changes: 4 additions & 4 deletions .github/workflows/test_workflow.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Continuous Deployment (Test)
name: Continuous Deployment (Build)
on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -71,17 +71,17 @@ jobs:
uses: montudor/action-zip@v1
if: steps.check_datapack_folder.outputs.files_exists == 'true'
with:
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
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 ".*"
- name: Create mod jar file
uses: montudor/action-zip@v1
if: steps.check_mod_folder.outputs.files_exists == 'true'
with:
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
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"
- name: Create asset pack zip file
uses: montudor/action-zip@v1
if: steps.check_assets_folder.outputs.files_exists == 'true'
with:
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
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"

# Upload
- name: Capture datapack build artifact
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/unused
33 changes: 0 additions & 33 deletions CHANGELOG.md

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- **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))
- Copied the contents of the legacy folders to their new names and removed unused code
- Used new enchantment check format in predicates
- Updated menu trigger to use advancements instead and added menu message header
- Fixed performance overlay for Minecraft 1.20.2+ not having an effect
- Updated LICENSE
6 changes: 3 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ This license shall be included in all copies or substantial portions of this pro

Permitted Uses:

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

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

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

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.

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.

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 [email protected] 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.
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 [email protected] 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.


Prohibited Uses:
Expand Down
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<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>
</p>

> A server-side data pack/mod for Minecraft 1.17x-1.20x
> A server-side data pack/mod for Minecraft 1.17x-1.21x
<details>
<summary>YouTube showcase</summary>
Expand All @@ -22,16 +22,12 @@

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)

**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
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.
For a detailed overview of all supported items and entities, take a look at the wiki pages linked below.

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

**Supported Entities:** Allays, Glow Squids, Glow Item Frames, Blazes, TNT, End Crystals, Fireballs, Spectral Arrows, Shulker Bullets, Firework Rockets and Flying Wither Skulls

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
the client for singleplayer worlds only. Joining a server that has not installed Dynamic Lights will have no effect.

[➜ For available settings and planned features, take a look at the wiki](https://github.com/Tschipcraft/dynamiclights/wiki)
[➜ For a detailed overview and available settings, take a look at the wiki](https://github.com/Tschipcraft/dynamiclights/wiki)


## Installation
Expand All @@ -46,7 +42,7 @@ Also available on Modrinth and CurseForge!
<picture>
<source height="72px" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/Tschipcraft/badges/main/assets/modrinth-badge-dark.svg">
<source height="72px" media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/Tschipcraft/badges/main/assets/modrinth-badge-light.svg">
<img height="72px" alt="Download on Modrinth" src="https://raw.githubusercontent.com/modrinth/art/main/Branding/Badge/badge-dark.svg">
<img height="72px" alt="Download on Modrinth" src="https://raw.githubusercontent.com/Tschipcraft/badges/main/assets/modrinth-badge-dark.svg">
</picture>
</a>
<a href="https://www.curseforge.com/minecraft/texture-packs/tschipcrafts-dynamic-lights">
Expand Down
7 changes: 7 additions & 0 deletions data/dynamiclights/function/api/place_light/12.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
##by Tschipcraft
# Places a dynamic light block with light level 12 near the provided location (~ ~ ~) that will disappear after 1 tick
# Additionally sets the score #check_passed ts.dl.temp to 1

scoreboard players set #check_passed ts.dl.temp 1

function dynamiclights:internal/place_light/12/exec
7 changes: 7 additions & 0 deletions data/dynamiclights/function/api/place_light/15.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
##by Tschipcraft
# Places a dynamic light block with light level 15 near the provided location (~ ~ ~) that will disappear after 1 tick
# Additionally sets the score #check_passed ts.dl.temp to 1

scoreboard players set #check_passed ts.dl.temp 1

function dynamiclights:internal/place_light/15/exec
7 changes: 7 additions & 0 deletions data/dynamiclights/function/api/place_light/3.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
##by Tschipcraft
# Places a dynamic light block with light level 3 near the provided location (~ ~ ~) that will disappear after 1 tick
# Additionally sets the score #check_passed ts.dl.temp to 1

scoreboard players set #check_passed ts.dl.temp 1

function dynamiclights:internal/place_light/3/exec
7 changes: 7 additions & 0 deletions data/dynamiclights/function/api/place_light/6.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
##by Tschipcraft
# Places a dynamic light block with light level 6 near the provided location (~ ~ ~) that will disappear after 1 tick
# Additionally sets the score #check_passed ts.dl.temp to 1

scoreboard players set #check_passed ts.dl.temp 1

function dynamiclights:internal/place_light/6/exec
7 changes: 7 additions & 0 deletions data/dynamiclights/function/api/place_light/9.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
##by Tschipcraft
# Places a dynamic light block with light level 9 near the provided location (~ ~ ~) that will disappear after 1 tick
# Additionally sets the score #check_passed ts.dl.temp to 1

scoreboard players set #check_passed ts.dl.temp 1

function dynamiclights:internal/place_light/9/exec
Loading

0 comments on commit fce57e3

Please sign in to comment.