What?
This datapack helps you control item displays, by simplifing the complicated commands often used with them.
For example, normally to set the item of the item display nearest to your hand you would use:
/item replace entity @e[type=minecraft:item_display,limit=1,sort=nearest] container.0 from entity @s weapon
but with the datapack you can simply do:
/trigger displayItem
Note that this datapack isn't really survival/non-admin friendly, and while I will try to make some commands admin-free it isnt my priority.
How?
All Commands
/trigger displaySpawn
- summons a item display centered on the current block
/trigger displayItem
- sets the item displays item to display to the players held item
/trigger displayKill
- kills the nearest display within 5 blocks
/trigger displayRot
- sends a message to the player in chat with buttons to control the displays rotation
/trigger displayOffset
- sends a message to the player in chat with buttons to control the displays position
/trigger displayScale
- sends a message in chat to control the scale of the display
Why?
Why not just use item frames, I hear you ask? Well, when using custom model data and item frames, models larger than a block disappear when the item frame itself isn't visible. This problem, however, does not occur with item displays!
Short video showing the downsides of item frames:
Tell me more!
Short video showing the datapack in action:
For a more proper tutorial, see this video
With these highly customisable item displays, you can add intricate details to your minecraft builds, with a minimum of command knowledge!
Item displays mostly work for blocks as well, however blocks with a different item model to their block model won't display correctly. For this, you need a block display. Unfortunatly, I haven't implemented block displays yet.