Hello! I am in the middle of creating a skript. But I have a bit of a problem with some item spawning. I am trying to check if the item has a specific name. But it always returns "dropped item" or "item stack".
I have searched a lot on this subject and also found some solutions. But for some reason I just can't get them to work for me. And I'm also really new in this area (Talking about the addon skript-mirror).
on item spawn:
event-entity.setCustomNameVisible(true);
event-entity.setCustomName(event-entity.getItemStack().getItemMeta().getDisplayName() ? "%event- entity.getItemStack()%");
That's the code I found from 2 different threads. But I just can't get it to work. I use the following addons:
Skript(Obviously), SkQuery, Skrayfall, Skellett and Skript-mirror. I also use spigot 1.8.8. Got a solution or just know the answer?
I have searched a lot on this subject and also found some solutions. But for some reason I just can't get them to work for me. And I'm also really new in this area (Talking about the addon skript-mirror).
on item spawn:
event-entity.setCustomNameVisible(true);
event-entity.setCustomName(event-entity.getItemStack().getItemMeta().getDisplayName() ? "%event- entity.getItemStack()%");
That's the code I found from 2 different threads. But I just can't get it to work. I use the following addons:
Skript(Obviously), SkQuery, Skrayfall, Skellett and Skript-mirror. I also use spigot 1.8.8. Got a solution or just know the answer?
Last edited: