We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe2182f commit 7f4523bCopy full SHA for 7f4523b
src/lib/text/nbt.ts
@@ -194,12 +194,22 @@ function mapPropertiesToType(source: MinecraftText): JSONContent {
194
};
195
} else if (source.atlas) {
196
finalText = {
197
- type: "object",
+ type: "atlas_object",
198
attrs: {
199
atlas: source.atlas,
200
sprite: source.sprite,
201
},
202
203
+ } else if (source.player) {
204
+ finalText = {
205
+ type: "player_object",
206
+ attrs: {
207
+ hat: source.hat || true,
208
+ player: {
209
+ name: source.player.name
210
+ },
211
212
+ };
213
} else {
214
215
type: "text",
0 commit comments