File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
src/systems/datapackCompiler Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -435,7 +435,7 @@ dir <%export_namespace%> {
435
435
function *global/internal/gu/convert_uuid_array_to_string with entity @s
436
436
data modify entity @s data.bones.data_data set from storage aj:uuid main.out
437
437
438
- REPEAT (Object.values(rig.nodes).filter(v => v.type === 'locator')) as locator {
438
+ REPEAT (Object.values(rig.nodes).filter(v => v.type === 'locator' && v.config?.use_entity )) as locator {
439
439
IF (locator.config && locator.config.use_entity) {
440
440
summon <%locator.config.entity_type%> \
441
441
^<%locator.default_transform.pos[0]%> \
@@ -573,7 +573,7 @@ dir <%export_namespace%> {
573
573
}
574
574
$data modify storage aj:temp command set value '$(command)'
575
575
execute on passengers if entity @s[tag=<%TAGS.GLOBAL_DATA()%>] run {
576
- REPEAT (Object.values(rig.nodes).filter(v => v.type === 'locator')) as locator {
576
+ REPEAT (Object.values(rig.nodes).filter(v => v.type === 'locator' && v.config?.use_entity )) as locator {
577
577
data modify storage aj:temp uuid set from entity @s data.locators.<%locator.name%>.uuid
578
578
block zzz/execute { with storage aj:temp
579
579
$execute as $(uuid) run $(command)
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ dir <%export_namespace%> {
120
120
function *global/internal/gu/convert_uuid_array_to_string with entity @s
121
121
data modify entity @s data.bones.data_data set from storage aj:uuid main.out
122
122
123
- REPEAT (Object.values(rig.nodes).filter(v => v.type === 'locator')) as locator {
123
+ REPEAT (Object.values(rig.nodes).filter(v => v.type === 'locator' && v.config?.use_entity )) as locator {
124
124
IF (locator.config && locator.config.use_entity) {
125
125
summon <%locator.config.entity_type%> \
126
126
^<%locator.default_transform.pos[0]%> \
@@ -229,7 +229,7 @@ dir <%export_namespace%> {
229
229
}
230
230
$data modify storage aj:temp command set value '$(command)'
231
231
execute on passengers if entity @s[tag=<%TAGS.GLOBAL_DATA()%>] run {
232
- REPEAT (Object.values(rig.nodes).filter(v => v.type === 'locator')) as locator {
232
+ REPEAT (Object.values(rig.nodes).filter(v => v.type === 'locator' && v.config?.use_entity )) as locator {
233
233
data modify storage aj:temp uuid set from entity @s data.locators.<%locator.name%>.uuid
234
234
block zzz/execute { with storage aj:temp
235
235
$execute as $(uuid) run $(command)
Original file line number Diff line number Diff line change @@ -435,7 +435,7 @@ dir <%export_namespace%> {
435
435
function *global/internal/gu/convert_uuid_array_to_string with entity @s
436
436
data modify entity @s data.bones.data_data set from storage aj:uuid main.out
437
437
438
- REPEAT (Object.values(rig.nodes).filter(v => v.type === 'locator')) as locator {
438
+ REPEAT (Object.values(rig.nodes).filter(v => v.type === 'locator' && v.config?.use_entity )) as locator {
439
439
IF (locator.config && locator.config.use_entity) {
440
440
summon <%locator.config.entity_type%> \
441
441
^<%locator.default_transform.pos[0]%> \
@@ -573,7 +573,7 @@ dir <%export_namespace%> {
573
573
}
574
574
$data modify storage aj:temp command set value '$(command)'
575
575
execute on passengers if entity @s[tag=<%TAGS.GLOBAL_DATA()%>] run {
576
- REPEAT (Object.values(rig.nodes).filter(v => v.type === 'locator')) as locator {
576
+ REPEAT (Object.values(rig.nodes).filter(v => v.type === 'locator' && v.config?.use_entity )) as locator {
577
577
data modify storage aj:temp uuid set from entity @s data.locators.<%locator.name%>.uuid
578
578
block zzz/execute { with storage aj:temp
579
579
$execute as $(uuid) run $(command)
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ dir <%export_namespace%> {
120
120
function *global/internal/gu/convert_uuid_array_to_string with entity @s
121
121
data modify entity @s data.bones.data_data set from storage aj:uuid main.out
122
122
123
- REPEAT (Object.values(rig.nodes).filter(v => v.type === 'locator')) as locator {
123
+ REPEAT (Object.values(rig.nodes).filter(v => v.type === 'locator' && v.config?.use_entity )) as locator {
124
124
IF (locator.config && locator.config.use_entity) {
125
125
summon <%locator.config.entity_type%> \
126
126
^<%locator.default_transform.pos[0]%> \
@@ -228,7 +228,7 @@ dir <%export_namespace%> {
228
228
}
229
229
$data modify storage aj:temp command set value '$(command)'
230
230
execute on passengers if entity @s[tag=<%TAGS.GLOBAL_DATA()%>] run {
231
- REPEAT (Object.values(rig.nodes).filter(v => v.type === 'locator')) as locator {
231
+ REPEAT (Object.values(rig.nodes).filter(v => v.type === 'locator' && v.config?.use_entity )) as locator {
232
232
data modify storage aj:temp uuid set from entity @s data.locators.<%locator.name%>.uuid
233
233
block zzz/execute { with storage aj:temp
234
234
$execute as $(uuid) run $(command)
You can’t perform that action at this time.
0 commit comments