-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix items getting wrongly recognized by slot contents predicate
- Fixed some items getting recognized by the newly added slot contents predicate when they shouldn't (e.g. from the first slot in chest/hopper minecarts/boats or the first player hotbar slot) - Added support for falling blocks, block displays and ominous item spawners in versions 24w11a and above - Added separate mod support tag lists for modded items - Tidied up predicate comments - Updated version checker to 1.20.5 Release Candidate 2
- Loading branch information
1 parent
b1a267f
commit c3efcb6
Showing
36 changed files
with
113 additions
and
18 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
2 changes: 1 addition & 1 deletion
2
data/dynamiclights/predicates/entity/light_level/15/has_mainhand_item.json
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
2 changes: 1 addition & 1 deletion
2
data/dynamiclights/predicates/entity/light_level/6/has_mainhand_item.json
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
2 changes: 1 addition & 1 deletion
2
data/dynamiclights/predicates/entity/light_level/9/has_mainhand_item.json
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
2 changes: 1 addition & 1 deletion
2
data/dynamiclights/predicates/entity/water_check/no_water_immersion_extinguish_items.json
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
2 changes: 1 addition & 1 deletion
2
data/dynamiclights/predicates/entity/water_check/no_water_immersion_illuminate_items.json
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/tags/items/mod_support/light_level/15.json
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 @@ | ||
{ | ||
"//comment": "Items listed here will emit light level 15 - Intended to get populated by mods", | ||
"replace": false, | ||
"values": [ | ||
{"id": "#c:lanterns", "required": false}, | ||
{"id": "#c:lava_buckets", "required": false} | ||
] | ||
} |
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 @@ | ||
{ | ||
"//comment": "Items listed here will emit light level 6 - Intended to get populated by mods", | ||
"replace": false, | ||
"values": [ | ||
{"id": "#c:amethyst_blocks", "required": false}, | ||
{"id": "#forge:storage_blocks/amethyst", "required": false}, | ||
{"id": "#forge:nether_stars", "required": false} | ||
] | ||
} |
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 @@ | ||
{ | ||
"//comment": "Items listed here will emit light level 9 - Intended to get populated by mods", | ||
"replace": false, | ||
"values": [ | ||
{"id": "#c:glow_berries", "required": false}, | ||
{"id": "#c:glowstone_dusts", "required": false}, | ||
{"id": "#forge:rods/blaze", "required": false} | ||
] | ||
} |
7 changes: 7 additions & 0 deletions
7
data/dynamiclights/tags/items/mod_support/water_sensitive/turn_off.json
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 @@ | ||
{ | ||
"//comment": "Items listed here will only emit light outside water - Intended to get populated by mods", | ||
"replace": false, | ||
"values": [ | ||
{"id": "#c:lava_buckets", "required": false} | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
data/dynamiclights/tags/items/mod_support/water_sensitive/turn_on.json
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,6 @@ | ||
{ | ||
"//comment": "Items listed here will only emit light inside water - Intended to get populated by mods", | ||
"replace": false, | ||
"values": [ | ||
] | ||
} |
2 changes: 1 addition & 1 deletion
2
overlay_33/data/dynamiclights/predicates/entity/light_level/15/has_mainhand_item.json
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
2 changes: 1 addition & 1 deletion
2
overlay_33/data/dynamiclights/predicates/entity/light_level/6/has_mainhand_item.json
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
2 changes: 1 addition & 1 deletion
2
overlay_33/data/dynamiclights/predicates/entity/light_level/9/has_mainhand_item.json
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
2 changes: 1 addition & 1 deletion
2
...data/dynamiclights/predicates/entity/water_check/no_water_immersion_extinguish_items.json
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
2 changes: 1 addition & 1 deletion
2
...data/dynamiclights/predicates/entity/water_check/no_water_immersion_illuminate_items.json
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
1 change: 1 addition & 0 deletions
1
overlay_35/data/dynamiclights/advancements/interacted_with_item_frame.json
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
19 changes: 19 additions & 0 deletions
19
overlay_35/data/dynamiclights/funtions/internal/sources/parse/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,19 @@ | ||
##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 | ||
execute as @s[type=minecraft:falling_block] run data modify entity c295ddee-4c15-4e5b-83ba-2fbce873a1d5 HandItems[0].id set from entity @s BlockState.Name | ||
execute as @s[type=minecraft:block_display] run data modify entity c295ddee-4c15-4e5b-83ba-2fbce873a1d5 HandItems[0].id set from entity @s block_state.Name | ||
|
||
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 | ||
|
||
# Item frame checking is not neccessary anymore |
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
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
3 changes: 2 additions & 1 deletion
3
...data/dynamiclights/predicates/entity/water_check/contents/water_immersion_extinguish.json
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
3 changes: 2 additions & 1 deletion
3
...data/dynamiclights/predicates/entity/water_check/contents/water_immersion_illuminate.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"//comment": "These entities use a different NBT tag for storing their item and need special parsing for detection.", | ||
"//version_notice": "Mentions for single slot entities are not needed here anymore since 24w11a. Instead, take a look at single_slot_entities.json.", | ||
"replace": false, | ||
"values": [ | ||
"minecraft:falling_block", | ||
{"id": "minecraft:block_display", "required": false} | ||
] | ||
} |
13 changes: 13 additions & 0 deletions
13
overlay_35/data/dynamiclights/tags/entity_types/single_slot_entities.json
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,13 @@ | ||
{ | ||
"//comment": "Single slot item holder entities that correctly expose their slots contents tag to check for light emitting items.", | ||
"replace": false, | ||
"values": [ | ||
"#minecraft:arrows", | ||
"minecraft:trident", | ||
"minecraft:item", | ||
"minecraft:item_display", | ||
"minecraft:item_frame", | ||
"minecraft:glow_item_frame", | ||
{"id": "minecraft:ominous_item_spawner", "required": false} | ||
] | ||
} |