Skip to content

Commit 0e9d93c

Browse files
authored
Merge pull request #95 from Tschipcraft/dev
v1.9.1
2 parents 0d94ae9 + 67f29b0 commit 0e9d93c

File tree

14 files changed

+23
-33
lines changed

14 files changed

+23
-33
lines changed

.spyglassrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"env": {
3-
"gameVersion": "1.21.9"
3+
"gameVersion": "1.21.11"
44
},
55
"lint": {
66
"idOmitDefaultNamespace": ["warning", false],

CHANGES.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
- **Added support for Minecraft 1.21.9** 🥉
2-
- Added Copper Torches and Copper Lanterns to light level 15 items
3-
- Updated to work with the new pack.mcmeta syntax
4-
- **Expanded the search area for dynamic light placement**
5-
This fixes dynamic lights not searching for space under their eye level, and generally improves the checking order including short-circuiting opportunities
6-
- Improved piston detection to search for slime or honey blocks in corners and behind other blocks
7-
This resolves an issue when using [Gnembon's Gold Farm](https://www.youtube.com/watch?v=DLe5-THpQ6I) (closes [#75](https://github.com/Tschipcraft/dynamiclights/issues/75))
8-
- Fixed Curios slot parsing issues (closes [#76](https://github.com/Tschipcraft/dynamiclights/issues/76))
9-
- Added Firefly Bushes to light level 3 items
10-
- Added mod support for [TerraFirmaCraft](https://modrinth.com/project/JaCEZUhg) (closes [#72](https://github.com/Tschipcraft/dynamiclights/issues/72)), [Bone Torch](https://www.curseforge.com/minecraft/mc-mods/sbm-bone-torch), and [Aquatic Torches](https://modrinth.com/project/yJR377od) (closes [#38](https://github.com/Tschipcraft/dynamiclights/issues/38))
1+
- **Added support for Minecraft 1.21.11** 🐎
2+
- Updated rain detection to use our own `#is_dry` biome tag combo instead of the now removed `#snow_golem_melts` tag
3+
- Removed broken hide feedback code for 1.21+
4+
- Bumped pack format and protocol version
5+
- Reduced non-player entity cap from 1000 to 750 ([#91](https://github.com/Tschipcraft/dynamiclights/issues/91))

data/dynamiclights/function/internal/main.mcfunction

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ execute as @e[type=minecraft:tnt,limit=10] at @s run function dynamiclights:inte
1212
# Core
1313
execute if score $enable ts.dl.settings matches 1..2 unless score $global ts.dl.tnt.fuse matches 1 as @a[gamemode=!spectator,tag=!smithed.strict,tag=!global.ignore,tag=!global.ignore.gui,tag=!ts.dl.ignore] at @s run function dynamiclights:internal/main_exec_pass
1414

15-
execute if score $enable ts.dl.settings matches 1..2 unless score $global ts.dl.tnt.fuse matches 1 as @e[type=!minecraft:player,type=!#dynamiclights:dyn_ignore,tag=!smithed.strict,tag=!global.ignore,tag=!global.ignore.gui,tag=!ts.dl.ignore,tag=!ts.sa.hidden,limit=1000] at @s run function dynamiclights:internal/main_exec
15+
execute if score $enable ts.dl.settings matches 1..2 unless score $global ts.dl.tnt.fuse matches 1 as @e[type=!minecraft:player,type=!#dynamiclights:dyn_ignore,tag=!smithed.strict,tag=!global.ignore,tag=!global.ignore.gui,tag=!ts.dl.ignore,tag=!ts.sa.hidden,limit=750] at @s run function dynamiclights:internal/main_exec
1616

1717
# Clear old lights
1818
execute as @e[type=minecraft:marker,tag=ts.dl.remove] at @s run function dynamiclights:internal/remove_light

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 4600.. run tellraw @a [{"text":"[Dynamic Lights] ","color":"gray"},{"text":"?","bold":true,"color":"gold"},{"text":" Future unknown Minecraft version above 1.21.9 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 4700.. run tellraw @a [{"text":"[Dynamic Lights] ","color":"gray"},{"text":"?","bold":true,"color":"gold"},{"text":" Future unknown Minecraft version above 1.21.11 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
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
##by Tschipcraft
22
# Completes the rain check started in main_exec_pass.mcfunction (mc1.19.4+)
33

4-
execute if dimension minecraft:overworld unless biome ~ ~ ~ #minecraft:snow_golem_melts positioned over motion_blocking if entity @s[dy=999] run scoreboard players set @s ts.dl.in_rain 1
4+
execute if dimension minecraft:overworld unless biome ~ ~ ~ #dynamiclights:is_dry positioned over motion_blocking if entity @s[dy=999] run scoreboard players set @s ts.dl.in_rain 1

data/dynamiclights/function/settings/core.mcfunction

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,4 @@ execute if score $global ts.dl.version matches 3337.. if score $water_sensitive
7474
execute if score $global ts.dl.version matches 3337.. if score $water_sensitive ts.dl.settings matches 1..2 if score $rain_sensitive ts.dl.settings matches 2 run tellraw @s [{"text":" └[✔] Rain Check","bold":false,"color":"gray","hover_event":{"action":"show_text","value":[{"text":"This setting is getting controlled globally and can't be changed here."}]}}]
7575
execute if score $global ts.dl.version matches 3337.. if score $water_sensitive ts.dl.settings matches -1..0 run tellraw @s [{"text":" └[❌] Rain Check","bold":false,"color":"gray","hover_event":{"action":"show_text","value":[{"text":"Please enable the water sensitivity check first."}]}}]
7676

77-
function dynamiclights:settings/hide_feedback/main
7877
playsound minecraft:block.dispenser.dispense master @s ~ ~ ~ 0.2 2

data/dynamiclights/function/settings/hide_feedback/hide.mcfunction

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

data/dynamiclights/function/settings/hide_feedback/main.mcfunction

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

data/dynamiclights/function/settings/hide_feedback/unhide.mcfunction

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

data/dynamiclights/functions/internal/main.mcfunction

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ execute as @e[type=minecraft:tnt,limit=10] at @s run function dynamiclights:inte
1515
# Core
1616
execute if score $enable ts.dl.settings matches 1..2 unless score $global ts.dl.tnt.fuse matches 1 as @a[gamemode=!spectator,tag=!smithed.strict,tag=!global.ignore,tag=!global.ignore.gui,tag=!ts.dl.ignore] at @s run function dynamiclights:internal/main_exec_pass
1717

18-
execute if score $enable ts.dl.settings matches 1..2 unless score $global ts.dl.tnt.fuse matches 1 as @e[type=!minecraft:player,type=!#dynamiclights:dyn_ignore,tag=!smithed.strict,tag=!global.ignore,tag=!global.ignore.gui,tag=!ts.dl.ignore,tag=!ts.sa.hidden,limit=1000] at @s run function dynamiclights:internal/main_exec
18+
execute if score $enable ts.dl.settings matches 1..2 unless score $global ts.dl.tnt.fuse matches 1 as @e[type=!minecraft:player,type=!#dynamiclights:dyn_ignore,tag=!smithed.strict,tag=!global.ignore,tag=!global.ignore.gui,tag=!ts.dl.ignore,tag=!ts.sa.hidden,limit=750] at @s run function dynamiclights:internal/main_exec
1919

2020
# Clear old lights
2121
execute as @e[type=minecraft:marker,tag=ts.dl.remove] at @s run function dynamiclights:internal/remove_light

0 commit comments

Comments
 (0)