-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from Tschipcraft/dev
v1.8.4
- Loading branch information
Showing
61 changed files
with
382 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"env": { | ||
"gameVersion": "1.21" | ||
}, | ||
"lint": { | ||
"idOmitDefaultNamespace": ["warning", false], | ||
"nbtTypeCheck": ["warning", "strictly"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
- **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 | ||
- **Added support for Minecraft 1.21.3** 💰 | ||
- **Added Curios API and Curios API Continuation support** (closes [#52](https://github.com/Tschipcraft/dynamiclights/issues/52)) | ||
- **Added global and per-player toggle for Dynamic Lights** (closes [#56](https://github.com/Tschipcraft/dynamiclights/issues/56), closes [#37](https://github.com/Tschipcraft/dynamiclights/issues/37), closes [#26](https://github.com/Tschipcraft/dynamiclights/issues/26), closes [#47](https://github.com/Tschipcraft/dynamiclights/issues/47)) | ||
- Added mod support for Lucky's Wardrobe | ||
- Fixed ominous item spawners not being parsed for light emitting items | ||
- Fixed Dynamic Lights breaking after some time on paper servers (closes [#45](https://github.com/Tschipcraft/dynamiclights/issues/45), closes [#21](https://github.com/Tschipcraft/dynamiclights/issues/21)) | ||
- Fixed tschipcraft.menu trigger not being enabled in 1.21+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"criteria": { | ||
"trigger_menu": { | ||
"trigger": "minecraft:tick", | ||
"conditions": { | ||
"player": [ | ||
{ | ||
"condition": "minecraft:entity_scores", | ||
"entity": "this", | ||
"scores": { | ||
"ts.dl.toggle": { | ||
"min": 1 | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"rewards": { | ||
"function": "dynamiclights:settings/toggle_enable_player" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"criteria": { | ||
"trigger_menu": { | ||
"trigger": "minecraft:tick", | ||
"conditions": { | ||
"player": [ | ||
{ | ||
"condition": "minecraft:entity_scores", | ||
"entity": "this", | ||
"scores": { | ||
"ts.dl.toggle": { | ||
"min": 1 | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"rewards": { | ||
"function": "dynamiclights:settings/toggle_enable_player" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
##by Tschipcraft | ||
# Loop to ensure all new players can run the triggers | ||
|
||
schedule function dynamiclights:internal/loop 4s | ||
|
||
scoreboard players enable @a ts.dl.toggle | ||
scoreboard players enable @a tschipcraft.menu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
data/dynamiclights/function/internal/sources/mod_support/curios/iterate_items.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
##by Tschipcraft | ||
# Iterates over all items in the current stack | ||
|
||
# Check if item renders | ||
execute store result score curios.render ts.dl.temp run data get storage dynamiclights:curios stacks[0].StacksHandler.Renders.Renders[0].Render | ||
|
||
# Parse item and advance to next | ||
execute if score curios.render ts.dl.temp matches 1 run function dynamiclights:internal/sources/mod_support/curios/parse | ||
data remove storage dynamiclights:curios stacks[0].StacksHandler.Stacks.Items[0] | ||
data remove storage dynamiclights:curios stacks[0].StacksHandler.Renders.Renders[0] | ||
|
||
execute if data storage dynamiclights:curios stacks[0].StacksHandler.Stacks.Items[0] run function dynamiclights:internal/sources/mod_support/curios/iterate_items |
7 changes: 7 additions & 0 deletions
7
data/dynamiclights/function/internal/sources/mod_support/curios/iterate_stacks.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
##by Tschipcraft | ||
|
||
# Iterate over all stacks added by Curios | ||
execute if data storage dynamiclights:curios stacks[0].StacksHandler.Stacks.Items[0] run function dynamiclights:internal/sources/mod_support/curios/iterate_items | ||
data remove storage dynamiclights:curios stacks[0] | ||
|
||
execute if data storage dynamiclights:curios stacks[0] run function dynamiclights:internal/sources/mod_support/curios/iterate_stacks |
12 changes: 12 additions & 0 deletions
12
data/dynamiclights/function/internal/sources/mod_support/curios/main.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
##by Tschipcraft | ||
|
||
# Reset scores from previous tick | ||
scoreboard players reset @s ts.dl.i.type | ||
scoreboard players reset @s ts.dl.i.is_ench | ||
scoreboard players reset @s ts.dl.i.is_ameth | ||
scoreboard players reset @s ts.dl.i.is_firea | ||
scoreboard players reset @s ts.dl.i.is_ript | ||
scoreboard players reset @s ts.dl.i.is_chann | ||
|
||
# Call iterated stack function | ||
function dynamiclights:internal/sources/mod_support/curios/iterate_stacks |
17 changes: 17 additions & 0 deletions
17
data/dynamiclights/function/internal/sources/mod_support/curios/parse.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
##by Tschipcraft | ||
|
||
summon armor_stand ~ ~ ~ {UUID:[I;-1030365714,1276464731,-2084950084,-395075115],NoGravity:1b,Silent:1b,Invulnerable:1b,Small:1b,Marker:1b,Invisible:1b,NoBasePlate:1b,Tags:["ts.dl.i.parser"],HandItems:[{id:"minecraft:structure_void",Count:1b},{}],DisabledSlots:4144959} | ||
|
||
# Copy NBT data | ||
data modify entity c295ddee-4c15-4e5b-83ba-2fbce873a1d5 HandItems[0] set from storage dynamiclights:curios stacks[0].StacksHandler.Stacks.Items[0] | ||
data modify entity c295ddee-4c15-4e5b-83ba-2fbce873a1d5 HandItems[1] set from storage dynamiclights:curios stacks[0].StacksHandler.Cosmetics.Items[0] | ||
|
||
execute as c295ddee-4c15-4e5b-83ba-2fbce873a1d5 run function dynamiclights:internal/sources/parse/main_exec | ||
|
||
# Transfer scores | ||
scoreboard players operation @s ts.dl.i.type = .global ts.dl.i.type | ||
scoreboard players operation @s ts.dl.i.is_ench = .global ts.dl.i.is_ench | ||
scoreboard players operation @s ts.dl.i.is_ameth = .global ts.dl.i.is_ameth | ||
scoreboard players operation @s ts.dl.i.is_firea = .global ts.dl.i.is_firea | ||
scoreboard players operation @s ts.dl.i.is_ript = .global ts.dl.i.is_ript | ||
scoreboard players operation @s ts.dl.i.is_chann = .global ts.dl.i.is_chann |
7 changes: 7 additions & 0 deletions
7
data/dynamiclights/function/internal/sources/mod_support/curios/trigger_forge.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
##by Tschipcraft | ||
|
||
# Copy to cache | ||
data modify storage dynamiclights:curios stacks set from entity @s ForgeCaps.curios:inventory.Curios | ||
|
||
# Call main | ||
function dynamiclights:internal/sources/mod_support/curios/main |
7 changes: 7 additions & 0 deletions
7
data/dynamiclights/function/internal/sources/mod_support/curios/trigger_neoforge.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
##by Tschipcraft | ||
|
||
# Copy to cache | ||
data modify storage dynamiclights:curios stacks set from entity @s neoforge:attachments.curios:inventory.Curios | ||
|
||
# Call main | ||
function dynamiclights:internal/sources/mod_support/curios/main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
data/dynamiclights/function/settings/toggle_enable_global.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
##by Tschipcraft | ||
|
||
execute if score $enable ts.dl.settings matches 1 run tellraw @s ["",{"text":"\n-> Disabled "},{"text":"Dynamic Lights globally","color":"yellow"}] | ||
execute if score $enable ts.dl.settings matches 0 run tellraw @s ["",{"text":"\n-> Enabled "},{"text":"Dynamic Lights globally","color":"yellow"}] | ||
|
||
scoreboard players add $enable ts.dl.settings 1 | ||
execute if score $enable ts.dl.settings matches 2 run scoreboard players set $enable ts.dl.settings 0 | ||
function dynamiclights:settings |
Oops, something went wrong.