In Minecraft Java Edition, I am experimenting with using CanPlaceOn
and CanDestroy
NBT tags in items to control which blocks that the player can place their items on.
Now I am making a troll map, where nothing is what it seems, and everything is tricking you into going off-track from the right answer. One of the ways I plan on tricking players is by making it seem like an item can be placed on red wool, when really it can be placed on lime wool instead.
I am already aware that by manipulation of the HideFlags
tag, some aspects of an item can be hidden. For example, I can hide the fact that the item can be placed on lime wool. This means the player will think the item is useless, but really it can be placed on lime wool.
But, I am stumped on how I can do the second part to this gimmick: add a fake item to the list displayed on the item's hover text. For this part, I want to make the item look like it can be placed on red wool, when really it can't.
How can I accomplish this?