File tree Expand file tree Collapse file tree 5 files changed +38
-188
lines changed Expand file tree Collapse file tree 5 files changed +38
-188
lines changed Original file line number Diff line number Diff line change 103103 "generic-stream" : " ^1.2.6" ,
104104 "marked" : " ^4.3.0" ,
105105 "marked-gfm-heading-id" : " ^3.0.0" ,
106- "mc-build" : " 3.3.12 " ,
106+ "mc-build" : " ^3.4.3 " ,
107107 "request-progress" : " ^3.0.0" ,
108108 "svelte-ace" : " ^1.0.21" ,
109109 "svelte-dnd-action" : " ^0.9.38"
Original file line number Diff line number Diff line change 1- import { SvelteComponent } from 'svelte'
1+ import { SvelteComponentDev } from 'svelte/internal '
22import AnimatedJavaLoadingPopup from '../components/animatedJavaLoadingPopup.svelte'
33import { injectSvelteCompomponent } from '../util/injectSvelteComponent'
44import { Valuable } from '../util/stores'
@@ -7,7 +7,7 @@ const LOADED = new Valuable(false)
77const OFFLINE = new Valuable ( false )
88const PROGRESS = new Valuable ( 0 )
99const PROGRESS_LABEL = new Valuable ( '' )
10- let activeComponent : SvelteComponent | undefined
10+ let activeComponent : SvelteComponentDev | undefined
1111
1212export async function showLoadingPopup ( ) {
1313 if ( activeComponent ) return
Original file line number Diff line number Diff line change @@ -379,13 +379,6 @@ dir <%export_namespace%> {
379379 REPEAT (animation.frames) as frame {
380380 function <%animation.frames.indexOf(frame)%> {
381381 <%%
382- if (frame.variant) {
383- console.log('Variant:', frame.variant)
384- const variant = rig.variants[frame.variant.uuid]
385- if (!variant) return
386- const execute_condition = variant.execute_condition ? variant.execute_condition.trim() + ' ' : ''
387- emit.mcb(`execute ${execute_condition}on vehicle unless entity @s[tag=<%TAGS.TRANSFORMS_ONLY()%>] run function *${export_namespace}/variants/${variant.name}/apply`)
388- }
389382 global.merged = {
390383 locators: {},
391384 cameras: {}
@@ -459,6 +452,19 @@ dir <%export_namespace%> {
459452 IF (Object.keys(global.merged.locators).length > 0 || Object.keys(global.merged.cameras).length > 0) {
460453 data modify entity @s data merge value <%JSON.stringify(global.merged)%>
461454 }
455+ <%%
456+ if (frame.variant) {
457+ const variant = rig.variants[frame.variant.uuid]
458+ if (!variant) return
459+ const execute_condition = variant.execute_condition ? variant.execute_condition.trim() + ' ' : ''
460+ emit.mcb(`execute on vehicle unless entity @s[tag=!<%TAGS.TRANSFORMS_ONLY()%>] ${execute_condition}run function *${export_namespace}/variants/${variant.name}/apply`)
461+ }
462+ if (frame.commands) {
463+ const commands = frame.commands
464+ const execute_condition = commands.execute_condition ? commands.execute_condition.trim() + ' ' : ''
465+ emit.mcb(`execute on vehicle unless entity @s[tag=!<%TAGS.TRANSFORMS_ONLY()%>] ${execute_condition}run {\n${commands.commands}\n}`)
466+ }
467+ %%>
462468 }
463469 }
464470 }
Original file line number Diff line number Diff line change 1111 "show_bounding_box": false,
1212 "auto_bounding_box": true,
1313 "bounding_box": [95, 32],
14- "enable_plugin_mode": true ,
14+ "enable_plugin_mode": false ,
1515 "resource_pack_export_mode": "raw",
1616 "data_pack_export_mode": "raw",
1717 "display_item": "minecraft:white_dye",
16731673 "interpolation": "linear",
16741674 "easing": "linear",
16751675 "easingArgs": []
1676+ },
1677+ {
1678+ "channel": "commands",
1679+ "data_points": [
1680+ {
1681+ "commands": "say bye",
1682+ "execute_condition": "",
1683+ "repeat": false,
1684+ "repeat_frequency": 1
1685+ }
1686+ ],
1687+ "uuid": "523673ac-dff1-1729-8064-4d0258e2de2a",
1688+ "time": 2,
1689+ "color": -1,
1690+ "interpolation": "linear",
1691+ "easing": "linear",
1692+ "easingArgs": []
16761693 }
16771694 ]
16781695 }
You can’t perform that action at this time.
0 commit comments