1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Applying "glowing" to dropped item

Discussion in 'Skript' started by L0v0lup, Sep 22, 2018.

Thread Status:
Not open for further replies.
  1. L0v0lup

    L0v0lup Member

    Joined:
    Feb 19, 2017
    Messages:
    23
    Likes Received:
    2
    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 (Skript):
    1. on drop:
    2.     apply glowing to dropped item for 999 hours
    3.  
    4.     apply glowing to event-item for 999 hours
    5.  
    6.     apply glowing to event-entity for 999 hours
    7.  
    8.     apply glowing to last spawned entity for 999 hours
    I wanna have it like that:
    [​IMG]
    Any ideas how i can do that with skript?

     
  2. Best Answer:
    Post #3 by Mr_Simba, Sep 28, 2018
  3. Scholler

    Scholler Active Member

    Joined:
    Aug 6, 2018
    Messages:
    130
    Likes Received:
    9
    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
     
  4. Mr_Simba

    Mr_Simba King of the Pridelands
    Moderator Supporter

    Joined:
    Dec 9, 2016
    Messages:
    257
    Likes Received:
    55
    Medals:
    Code (Skript):
    1. set glowing of dropped item to true
     
    • Winner Winner x 1
  5. Scholler

    Scholler Active Member

    Joined:
    Aug 6, 2018
    Messages:
    130
    Likes Received:
    9
    An example code using Mr_Simba's code
    Code (Skript):
    1. on drop:
    2.     set {_a} to event-item
    3.     cancel event
    4.     drop {_a} at block in front of player
    5.     set glowing of last dropped item to true
     
  6. Dabriel

    Dabriel Member

    Joined:
    Aug 13, 2018
    Messages:
    45
    Likes Received:
    5
    what's the point of canceling the drop and dropping it again lol?
     
  7. Scholler

    Scholler Active Member

    Joined:
    Aug 6, 2018
    Messages:
    130
    Likes Received:
    9
    Because it's not worked without cancelling for me...
     
  8. Mr_Simba

    Mr_Simba King of the Pridelands
    Moderator Supporter

    Joined:
    Dec 9, 2016
    Messages:
    257
    Likes Received:
    55
    Medals:
    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 (Skript):
    1. on drop:
    2.     wait 1 tick
    3.     set glowing of last dropped item to true
     
Thread Status:
Not open for further replies.

Share This Page

Loading...