-
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.
release(0.5.3): add filter and resolve to the string module
- Loading branch information
Showing
5 changed files
with
64 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Entity: a96aef33-7240-467a-94f0-bc73535ced07 | ||
summon marker ~ ~ ~ {UUID:[I;-1452609741,1916814970,-1796162445,1398598919]} | ||
|
||
data modify entity a96aef33-7240-467a-94f0-bc73535ced07 Tags set from storage moxlib:api/string/filter target | ||
data modify entity a96aef33-7240-467a-94f0-bc73535ced07 Tags append from storage moxlib:api/string/filter key | ||
|
||
execute store success storage moxlib:api/string/filter output byte 1 run data modify entity a96aef33-7240-467a-94f0-bc73535ced07 Tags set from storage moxlib:api/string/filter target | ||
kill a96aef33-7240-467a-94f0-bc73535ced07 |
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 @@ | ||
# Entity: babd0a7e-aa21-473b-a065-1495066cb515 | ||
summon armor_stand ~ ~ ~ {UUID:[I;-1162016130,-1440659653,-1603988331,107787541],HandItems:[{id:"minecraft:debug_stick",Count:1b}],Marker:1b,Invisible:1b} | ||
|
||
execute as @s run item modify entity babd0a7e-aa21-473b-a065-1495066cb515 weapon.mainhand moxlib:string/resolve | ||
data modify storage moxlib:api/string/resolve output set from entity babd0a7e-aa21-473b-a065-1495066cb515 HandItems[0].tag.display.Name | ||
|
||
kill babd0a7e-aa21-473b-a065-1495066cb515 |
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 @@ | ||
{ | ||
"function": "minecraft:set_name", | ||
"entity": "this", | ||
"name": { | ||
"nbt": "target", | ||
"storage": "moxlib:api/string/resolve", | ||
"interpret": true | ||
} | ||
} |
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