Solved Held with drop location

  • 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.
code_language.skript:
on drop:
    push dropped item in direction of player with force 0.7
    wait 2 ticks
    set {drop.test.%player%} to location at event-location
    set {drop.test.%player%.check} to true
    wait 5 seconds
    drop 1 diamond sword of sharpness 5 and unbreaking 2 named "{@pf}Lucky" at {drop.test.%player%}
    set {drop.test.%player%.check} to false
    send "Boom"
i need it to drop a item to latest location of dropped item
but it doesn't work item dropp to player not to dropped item location

try
code_language.skript:
on drop:
    push dropped item in direction of player with force 0.7
    wait 2 ticks
    set {_drop} to location at event-location
    set {drop.test.%player%.check} to true
    wait 5 seconds
    drop 1 diamond sword of sharpness 5 and unbreaking 2 named "{@pf}Lucky" at {_drop}
    set {drop.test.%player%.check} to false
    send "Boom"
 
code_language.skript:
loop all dropped items in radius 2.5 of {_drop}:
    delete loop-value
I'm really not sure if this will work
[doublepost=1527436717,1527436514][/doublepost]
code_language.skript:
loop all dropped items in radius 2.5 of/at {_drop}:
    delete loop-value
I'm really not sure if this will work

If its not clear: try using "of" OR "at"
 
Last edited:
clear {_dropped} ?
[doublepost=1527439181,1527438900][/doublepost]
code_language.skript:
loop entities:
        loop-entity is a dropped item
        clear loop-entity
it works but i will clear only {_drop} not all xdd
code_language.skript:
on drop:
    push dropped item in direction of player with force 0.7
    wait 2 ticks
    set {_drop} to location at event-location
    set {drop.test.%player%.check} to true
    wait 5 seconds
    drop 1 diamond sword of sharpness 5 and unbreaking 2 named "{@pf}Lucky" at {_drop}
    add dropped item to {_dropped::*}
    set {drop.test.%player%.check} to false
    send "Boom"
    loop entities:
        loop-entity is {_dropped::*}
        clear loop-entity
maybe?
 
Last edited:
not but i have it !!!!
code_language.skript:
on drop:
    push dropped item in direction of player with force 0.7
    wait 1 second
    set {_drop.%player%} to location at event-location
    set {drop.test.%player%.check} to true
    wait 5 seconds
    add dropped item to {_dropped.%player%::*}
    loop entities:
        loop-entity is {_dropped.%player%::*}
        clear loop-entity
    drop 1 diamond sword of sharpness 5 and unbreaking 2 named "{@pf}Lucky" at {_drop.%player%}
    set {drop.test.%player%.check} to false
it works thx for help :emoji_grinning:
Great :emoji_wink:
 
Status
Not open for further replies.