1
- import { isFunctionTagPath } from '../../util/fileUtil'
2
- import mcbFiles from '../datapackCompiler/mcbFiles'
3
- import { AnyRenderedNode , IRenderedRig , IRenderedVariant } from '../rigRenderer'
4
- import { IRenderedAnimation } from '../animationRenderer'
5
- import { Variant } from '../../variants'
6
1
import { NbtByte , NbtCompound , NbtFloat , NbtInt , NbtList , NbtString } from 'deepslate/lib/nbt'
7
- import {
8
- arrayToNbtFloatArray ,
9
- getFunctionNamespace ,
10
- matrixToNbtFloatArray ,
11
- replacePathPart ,
12
- sortObjectKeys ,
13
- transformationToNbt ,
14
- } from '../util'
2
+ import { MAX_PROGRESS , PROGRESS , PROGRESS_DESCRIPTION } from '../../interface/dialog/exportProgress'
15
3
import { BoneConfig , TextDisplayConfig } from '../../nodeConfigs'
4
+ import { isFunctionTagPath } from '../../util/fileUtil'
16
5
import {
17
6
getDataPackFormat ,
18
7
IFunctionTag ,
@@ -21,13 +10,24 @@ import {
21
10
parseDataPackPath ,
22
11
parseResourceLocation ,
23
12
} from '../../util/minecraftUtil'
24
- import { JsonText } from '../minecraft/jsonText'
25
- import { MAX_PROGRESS , PROGRESS , PROGRESS_DESCRIPTION } from '../../interface/dialog/exportProgress'
26
13
import { eulerFromQuaternion , floatToHex , roundTo , tinycolorToDecimal } from '../../util/misc'
27
14
import { MSLimiter } from '../../util/msLimiter'
15
+ import { Variant } from '../../variants'
16
+ import { IRenderedAnimation } from '../animationRenderer'
17
+ import mcbFiles from '../datapackCompiler/mcbFiles'
18
+ import { IntentionalExportError } from '../exporter'
19
+ import { JsonText } from '../minecraft/jsonText'
20
+ import { AnyRenderedNode , IRenderedRig , IRenderedVariant } from '../rigRenderer'
21
+ import {
22
+ arrayToNbtFloatArray ,
23
+ getFunctionNamespace ,
24
+ matrixToNbtFloatArray ,
25
+ replacePathPart ,
26
+ sortObjectKeys ,
27
+ transformationToNbt ,
28
+ } from '../util'
28
29
import { compile } from './compiler'
29
30
import { TAGS } from './tags'
30
- import { IntentionalExportError } from '../exporter'
31
31
32
32
const BONE_TYPES = [ 'bone' , 'text_display' , 'item_display' , 'block_display' ]
33
33
@@ -69,6 +69,7 @@ function getNodeTags(node: AnyRenderedNode, rig: IRenderedRig): NbtList {
69
69
70
70
tags . push (
71
71
// Global
72
+ TAGS . NEW ( ) ,
72
73
TAGS . GLOBAL_ENTITY ( ) ,
73
74
TAGS . GLOBAL_NODE ( ) ,
74
75
TAGS . GLOBAL_NODE_NAMED ( node . safe_name ) ,
@@ -592,6 +593,7 @@ async function generateRootEntityPassengers(rig: IRenderedRig, rigHash: string)
592
593
. set (
593
594
'Tags' ,
594
595
new NbtList ( [
596
+ new NbtString ( TAGS . NEW ( ) ) ,
595
597
new NbtString ( TAGS . GLOBAL_ENTITY ( ) ) ,
596
598
new NbtString ( TAGS . GLOBAL_DATA ( ) ) ,
597
599
new NbtString ( TAGS . PROJECT_ENTITY ( aj . export_namespace ) ) ,
@@ -1069,6 +1071,7 @@ export default async function compileDataPack(options: {
1069
1071
. length > 0 ,
1070
1072
has_cameras : Object . values ( rig . nodes ) . filter ( n => n . type === 'camera' ) . length > 0 ,
1071
1073
is_static,
1074
+ getNodeTags,
1072
1075
}
1073
1076
1074
1077
const mcbFile = is_static
0 commit comments