
Item display helper
A datapack for simplifying using item displays for lots of extra details on your builds!
- Загрузки
- 116
- Подписчики
- 5
- Обновлён
- 28 июня 2024 г.
- Лицензия
- All-Rights-Reserved
Опубликован 2 июня 2024 г.
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.
Ченджлог
1.75Релиз1.20.6 · 28 июня 2024 г.
Changes:
- Added
/trigger displaylockwhich allows the locking and unlocking of displays (locked displays won't be targeted by other commands anymore) - Added
/trigger displaylightwhich allows the overwriting of an item displays light level (sky and block). This is useful when the display is considered clipping a block, and so it renders with a shadow.
Still todo:
- Still need to add block display support, but it turns out theres no way to dynamically change the display block of a block display?? (I think...) which means its a lot harder to spawn it with the held block, change its displayed block, etc. (though move scale rotate etc should all work on block displays pretty much out of the box if I add them to the target selectors)
- I think adding 1.21 support should be really easy? I don't know if much has changed in terms of datapack format
- Adding pre-components support, while actually quite possible, I don't know if its worth doing. I might look into it in the future.
1.5Релиз1.20.6 · 10 июня 2024 г.
Renamed triggers to no longer use camelCase
displaySpawn->displayspawndisplayRot->displayrotdisplayScale->displayscaledisplayKill->displaykilldisplayItem->displayitem
Renamed displayOffset to displaymove
1Релиз1.20.6 · 2 июня 2024 г.
First version of datapack. Includes:
/trigger displaySpawn
/trigger displayKill
/trigger displayItem
/trigger displayRot
/trigger displayOffset
/trigger displayScale
Todo: Make custom scale, rotation, offset, etc use /trigger commands so their fully admin-free
Комментарии
Загружаем…