mojira.dev
MC-152089

New 1.14 - Data Modify - command has me pulling my hair out!

**I LOVE THE GAME! but i really need some info. pretty please?

 

[Command to get started]

/setblock ~ ~ ~ minecraft:chest{Lock:"???"} replace

 

[Commandblock 1]

execute at @e[type=item_frame,tag=Display] run data modify block ^ ^ ^-1 Lock set from entity @e[type=minecraft:item_frame,tag=Display,limit=1] Item.tag.display.Name

 

[Command 1]

/summon item_frame A

{Facing:*B*b,Tags:["Display"]}

*A = coordinates to place item frame

*B = Rotation of item frame to keep it from popping off

 

I have been trying to set up a key system for chest. When you place an item frame and place a any object, with desired name, it keeps giving the chest {"text":"C"} for the Lock

*C = Desired key name

 

you can check this by looking at the locked chest and and typing

/data get block "D" Lock

*D = Coordinates chest was located at

 

It will proceed to say

{"text":"C"}

Unless there is a string, translation, or any other method of getting just the "C" i am considering it broken

Linked issues

Attachments

Comments 1

This is not a bug. Item display names use the JSON text component and you are copying the JSON into a different string.

TabbedScamper

(Unassigned)

Unconfirmed

Commands

Minecraft 1.14.2 Pre-Release 1

Retrieved