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 103
103
"generic-stream" : " ^1.2.6" ,
104
104
"marked" : " ^4.3.0" ,
105
105
"marked-gfm-heading-id" : " ^3.0.0" ,
106
- "mc-build" : " 3.3.12 " ,
106
+ "mc-build" : " ^3.4.3 " ,
107
107
"request-progress" : " ^3.0.0" ,
108
108
"svelte-ace" : " ^1.0.21" ,
109
109
"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 '
2
2
import AnimatedJavaLoadingPopup from '../components/animatedJavaLoadingPopup.svelte'
3
3
import { injectSvelteCompomponent } from '../util/injectSvelteComponent'
4
4
import { Valuable } from '../util/stores'
@@ -7,7 +7,7 @@ const LOADED = new Valuable(false)
7
7
const OFFLINE = new Valuable ( false )
8
8
const PROGRESS = new Valuable ( 0 )
9
9
const PROGRESS_LABEL = new Valuable ( '' )
10
- let activeComponent : SvelteComponent | undefined
10
+ let activeComponent : SvelteComponentDev | undefined
11
11
12
12
export async function showLoadingPopup ( ) {
13
13
if ( activeComponent ) return
Original file line number Diff line number Diff line change @@ -379,13 +379,6 @@ dir <%export_namespace%> {
379
379
REPEAT (animation.frames) as frame {
380
380
function <%animation.frames.indexOf(frame)%> {
381
381
<%%
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
- }
389
382
global.merged = {
390
383
locators: {},
391
384
cameras: {}
@@ -459,6 +452,19 @@ dir <%export_namespace%> {
459
452
IF (Object.keys(global.merged.locators).length > 0 || Object.keys(global.merged.cameras).length > 0) {
460
453
data modify entity @s data merge value <%JSON.stringify(global.merged)%>
461
454
}
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
+ %%>
462
468
}
463
469
}
464
470
}
Original file line number Diff line number Diff line change 11
11
"show_bounding_box": false,
12
12
"auto_bounding_box": true,
13
13
"bounding_box": [95, 32],
14
- "enable_plugin_mode": true ,
14
+ "enable_plugin_mode": false ,
15
15
"resource_pack_export_mode": "raw",
16
16
"data_pack_export_mode": "raw",
17
17
"display_item": "minecraft:white_dye",
1673
1673
"interpolation": "linear",
1674
1674
"easing": "linear",
1675
1675
"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": []
1676
1693
}
1677
1694
]
1678
1695
}
You can’t perform that action at this time.
0 commit comments