File tree Expand file tree Collapse file tree 2 files changed +9
-17
lines changed Expand file tree Collapse file tree 2 files changed +9
-17
lines changed Original file line number Diff line number Diff line change @@ -207,22 +207,6 @@ dir <%export_namespace%> {
207207 }
208208 }
209209
210- dir as_camera {
211- # All child functions of this folder run as a camera entity
212- # Runs before the camera is ticked.
213- tag functions pre_tick {
214- }
215- # Runs after the camera is ticked.
216- tag functions post_tick {
217- }
218- # Runs when the camera is summoned.
219- tag functions on_summon {
220- }
221- # Runs when the camera is removed.
222- tag functions on_remove {
223- }
224- }
225-
226210 dir animations {
227211 REPEAT (animations) as animation {
228212 dir <%animation.name%> {
@@ -566,6 +550,14 @@ dir <%export_namespace%> {
566550 # On Remove Event
567551 function #animated_java:<%export_namespace%>/as_root/on_remove
568552
553+ execute on passengers if entity @s[tag=<%TAGS.GLOBAL_DATA()%>] run {
554+ REPEAT (Object.values(rig.nodeMap).filter(v => v.type === 'locator' && v.config?.use_entity)) as locator {
555+ execute run block zzz/kill { with entity @s data.positions.locators.<%locator.name%>
556+ $kill $(uuid)
557+ }
558+ }
559+ }
560+
569561 execute on passengers run kill @s
570562 kill @s
571563 }
Original file line number Diff line number Diff line change 11{
22 "meta": {
33 "format": "animated_java_blueprint",
4- "format_version": "0.5.0 ",
4+ "format_version": "0.5.2 ",
55 "uuid": "167b27cd-b559-3f13-a97c-0841fe21f1d1",
66 "save_location": "D:\\github-repos\\animated-java\\animated-java\\test_blueprints\\armor_stand.ajblueprint",
77 "last_used_export_namespace": "armor_stand"
You can’t perform that action at this time.
0 commit comments