Jump to content

Holographic Item Display Help


Manuscript

Recommended Posts

I have been trying to work on a skript for holographic displays on item drops, however, I need help with getting entity values to be separate depending on the item type, and I am not sure how to do that? (Reference picture: there is 4 wheat dropped and 2 coal ore but it says 6 coal ore). I also was wondering if there is a way to make the item I drop just automatically stack with an item of that type already on the ground rather than having the animation of dropping it from my hand show? There are also times where I drop 2 of one item but it still shows as 1x <item> on the ground. Overall, the skript is just buggy and I'd love for some help! Thank you.

```#DROPS
on item spawn:
	set {_itemName} to "%name of event-item%"
	if {_itemName} does not contain "<none>":
		add item amount of item of event-entity to {_total}
		set display name of event-entity to "%{_itemName}%"
		loop all dropped items in radius 5 of event-location:
			set {_itemName2} to "%name of loop-entity%"
			if {_itemName2} does not contain "<none>":
				add item amount of item of loop-entity to {_total}
				if {_total} >= 1:
					set display name of event-entity to "%{_total}%x %{_itemName}%"```

image.png?ex=6544054e&is=6531904e&hm=cdc0bbca5337599e76061981eb778f9425d4646068e9852931392a713236c382&

 

Edited by Manuscript
Link to comment
Share on other sites

I would recommend to store the amount of the item to list with ceratin values

and do the rest accordingly to it e.g.

add item amount of item of event-entity to {%event-item::%event-location%::*}
Edited by DanRub
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...