“value“:“{id:\“minecraft:apple\“}“
然后你可以试着先执行一下:
{“text“:“快摸我!“,“hoverEvent“:{“a“:“show_item“,“value“:“{id:\“minecraft:apple\“}“}}
只不过光标一放上去,就显示了一条红色的文本:
Invalid Item
这句话的意思是:无效的物品
既然无效,那么肯定就是我们有必填项没填,可以试着加一下t参数:
“value“:“{id:\“minecraft:apple\“,t:1}“
然后再试一下:
{“text“:“快摸我!“,“hoverEvent“:{“a“:“show_item“,“value“:“{id:\“minecraft:apple\“,t:1}“}}
你就会发现,你成功显示了一个苹果!
The content is not finished, continue reading on the next page