enter image description here enter image description here

I want to make several items in a /tellraw line, where each item can be on or off, where on items and off items can have different colors and hoverEvents (maybe and clickEvents). If there are too many items, and each possible combination cost a tellraw command, it explodes. Is there a good way to do such thing?

The selector way doesn't match hoverEvent requirement. Issue https://bugs.mojang.com/browse/MC-55493 . Another solution blocked https://bugs.mojang.com/browse/MC-129718

  • If you already know the bug report, why ask for help here? We can't fix the bug (except for modding), only Mojang can. Also, I don't understand this sentence: "If there are too many items, and each possible combination cost a tellraw command, it explodes." Can you explain what you mean with that, please? – Fabian Röling Oct 1 at 18:29
  • @FabianRöling We can't fix the feature, but we may be able to bypass; If there are 16 items, each can be on or off, there are 65536 combinations, which seems too large to handle – l4m2 Oct 1 at 18:42
  • Ah, so you don't want one command for 0000, one for 0001, one for 0010, one for 0011, one for 0100, etc., but instead two for the first digit, two for the second, etc.? – Fabian Röling Oct 1 at 21:06
  • Are texture packs an option? You might be able to abuse translations to generate a (potentially empty) list of entity names, which are translated to only one letter. – Fabian Röling Oct 1 at 21:14
  • Ah, forget it, it's possible without! – Fabian Röling Oct 1 at 21:17

team prefix&suffix can contain events, so such code makes an armor_stand that "named" aaa and show bbb when hover:

team add test
team modify test prefix {"text":"aaa","hoverEvent":{"action":"show_text","value":"bbb"}}
summon minecraft:armor_stand ~ ~ ~ {CustomName:"\"\""}
team join test @e[type=minecraft:armor_stand]
say @e[type=armor_stand]

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.