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'
61import { 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'
153import { BoneConfig , TextDisplayConfig } from '../../nodeConfigs'
4+ import { isFunctionTagPath } from '../../util/fileUtil'
165import {
176 getDataPackFormat ,
187 IFunctionTag ,
@@ -21,13 +10,24 @@ import {
2110 parseDataPackPath ,
2211 parseResourceLocation ,
2312} from '../../util/minecraftUtil'
24- import { JsonText } from '../minecraft/jsonText'
25- import { MAX_PROGRESS , PROGRESS , PROGRESS_DESCRIPTION } from '../../interface/dialog/exportProgress'
2613import { eulerFromQuaternion , floatToHex , roundTo , tinycolorToDecimal } from '../../util/misc'
2714import { 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'
2829import { compile } from './compiler'
2930import { TAGS } from './tags'
30- import { IntentionalExportError } from '../exporter'
3131
3232const BONE_TYPES = [ 'bone' , 'text_display' , 'item_display' , 'block_display' ]
3333
@@ -69,6 +69,7 @@ function getNodeTags(node: AnyRenderedNode, rig: IRenderedRig): NbtList {
6969
7070 tags . push (
7171 // Global
72+ TAGS . NEW ( ) ,
7273 TAGS . GLOBAL_ENTITY ( ) ,
7374 TAGS . GLOBAL_NODE ( ) ,
7475 TAGS . GLOBAL_NODE_NAMED ( node . safe_name ) ,
@@ -592,6 +593,7 @@ async function generateRootEntityPassengers(rig: IRenderedRig, rigHash: string)
592593 . set (
593594 'Tags' ,
594595 new NbtList ( [
596+ new NbtString ( TAGS . NEW ( ) ) ,
595597 new NbtString ( TAGS . GLOBAL_ENTITY ( ) ) ,
596598 new NbtString ( TAGS . GLOBAL_DATA ( ) ) ,
597599 new NbtString ( TAGS . PROJECT_ENTITY ( aj . export_namespace ) ) ,
@@ -1069,6 +1071,7 @@ export default async function compileDataPack(options: {
10691071 . length > 0 ,
10701072 has_cameras : Object . values ( rig . nodes ) . filter ( n => n . type === 'camera' ) . length > 0 ,
10711073 is_static,
1074+ getNodeTags,
10721075 }
10731076
10741077 const mcbFile = is_static
0 commit comments