Skip to content

Commit 1e1a848

Browse files
committed
Merge branch 'experimental'
2 parents 137e831 + 2ca2721 commit 1e1a848

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

exporters/datapackExporter/exporter/gen/function_tags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function generateTags(folders: IFolders) {
1212
minecraftFunctionTagFolder
1313
.chainNewFile(
1414
'load.json',
15-
{ replace: false, values: [`${G.PROJECT_PATH}/load`] },
15+
{ replace: false, values: [`${G.INTERNAL_PATH}/load`] },
1616
tagMerger
1717
)
1818
.chainNewFile(

exporters/datapackExporter/exporter/gen/functions.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function generateBonePassenger(uuid: string, bone: AnimatedJava.IRenderedNodes['
1818
if (!passenger.get('Tags')) passenger.set('Tags', new deepslate.NbtList())
1919
const tags = passenger.get('Tags') as InstanceType<typeof deepslate.NbtList>
2020
tags.add(new deepslate.NbtString(G.TAGS.new))
21-
tags.add(new deepslate.NbtString(G.TAGS.rootEntity))
21+
tags.add(new deepslate.NbtString(G.TAGS.rigEntity))
2222
tags.add(new deepslate.NbtString(G.TAGS.boneEntity))
2323
tags.add(new deepslate.NbtString(formatStr(G.TAGS.namedBoneEntity, [bone.name])))
2424

@@ -392,7 +392,6 @@ export function generateFunctions(folders: IFolders) {
392392
...G.VARIANTS.map((v, i) => `scoreboard players set $aj.${G.PROJECT_NAME}.variant.${v.name} ${G.SCOREBOARD.id} ${i}`),
393393
// Variable initialization
394394
`scoreboard players add .aj.last_id ${G.SCOREBOARD.id} 0`,
395-
`scoreboard players set $aj.default_interpolation_duration ${G.SCOREBOARD.i} ${G.DEFAULT_INTERPOLATION_DURATION}`,
396395
// prettier-ignore
397396
...G.LOOP_MODES.map((mode, i) => `scoreboard players set $aj.loop_mode.${mode} ${G.SCOREBOARD.i} ${i}`),
398397
// version ID
@@ -458,7 +457,7 @@ export function generateFunctions(folders: IFolders) {
458457
])
459458
// ANCHOR - function G.INTERNAL_FUNCTIONS/tick_as_root
460459
.chainNewFile('tick_as_root.mcfunction', [
461-
`execute unless score @s ${G.SCOREBOARD.rigLoaded} matches 1 run function ${G.INTERNAL_PATH}/on_load`,
460+
`execute unless score @s ${G.SCOREBOARD.rigLoaded} = @s ${G.SCOREBOARD.rigLoaded} run function ${G.INTERNAL_PATH}/on_load`,
462461
`scoreboard players add @s ${G.SCOREBOARD.lifeTime} 1`,
463462
`execute at @s on passengers run tp @s ~ ~ ~ ~ ~`,
464463
`function ${G.INTERNAL_PATH}/animations/tick`,
@@ -811,7 +810,7 @@ export function generateFunctions(folders: IFolders) {
811810
])
812811
// ANCHOR - func G.INTERNAL_PATH:animations/<anim_name>/tween_as_root
813812
.chainNewFile('tween_as_root.mcfunction', [
814-
`execute unless score #tween_duration ${G.SCOREBOARD.i} = #tween_duration ${G.SCOREBOARD.i} run scoreboard players operation #tween_duration ${G.SCOREBOARD.i} = $aj.default_interpolation_duration ${G.SCOREBOARD.i}`,
813+
`execute unless score #tween_duration ${G.SCOREBOARD.i} = #tween_duration ${G.SCOREBOARD.i} run scoreboard players set #tween_duration ${G.SCOREBOARD.i} 1`,
815814
`scoreboard players operation @s ${G.SCOREBOARD.tweenTime} = #tween_duration ${G.SCOREBOARD.i}`,
816815
G.IS_SINGLE_ENTITY_RIG
817816
? `execute store result entity @s interpolation_duration int 1 run scoreboard players get #tween_duration ${G.SCOREBOARD.i}`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"type": "module",
33
"name": "animated_java",
44
"title": "Animated Java",
5-
"version": "0.4.0",
5+
"version": "0.4.1",
66
"min_blockbench_version": "4.6.5",
77
"author": {
88
"name": "Titus Evans (SnaveSutit)",

0 commit comments

Comments
 (0)