Solved Applying "glowing" to dropped item

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

L0v0lup

Member
Feb 19, 2017
26
2
3
27
Minecraft 1.12.2
Skript 2.2-dev36

Hey, have anyone used the new "Glowing" effect on (dropped) items?
I've tried several ways to apply glowing but none of them worked.
code_language.skript:
on drop:
    apply glowing to dropped item for 999 hours

    apply glowing to event-item for 999 hours

    apply glowing to event-entity for 999 hours

    apply glowing to last spawned entity for 999 hours

I wanna have it like that:
c0105eadc6f5d0f0482568563defa230f6e091a1

Any ideas how i can do that with skript?
 
Well, I don't know why the apply glowing to ... code is not working...
I don't know if it's possible with skript. There's a link, maybe this helps
 
code_language.skript:
set glowing of dropped item to true
 
An example code using Mr_Simba's code
code_language.skript:
set glowing of dropped item to true
code_language.skript:
on drop:
    set {_a} to event-item
    cancel event
    drop {_a} at block in front of player
    set glowing of last dropped item to true
 
An example code using Mr_Simba's code

code_language.skript:
on drop:
    set {_a} to event-item
    cancel event
    drop {_a} at block in front of player
    set glowing of last dropped item to true
what's the point of canceling the drop and dropping it again lol?
 
It's probably because the dropped item isn't there yet when the event fires because it can be cancelled. You could try waiting a tick
code_language.skript:
on drop:
    wait 1 tick
    set glowing of last dropped item to true
 
Status
Not open for further replies.