Solved Drop item and push in a direction?

  • 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.

NewbyZ

Member
Jan 26, 2017
75
2
0
25
How can I do that when spawning a drop item, this is push in some direction, like dropped diamonds of Hypixel Delivery Man?
 
How can I do that when spawning a drop item, this is push in some direction, like dropped diamonds of Hypixel Delivery Man?

code_language.skript:
command /spawnpushingitem:
    trigger:
        drop 1 of ender chest at location of player
        loop all entities in radius 2 of player:
            loop-entity is a dropped item:
                loop 10 times:
                    push loop-entityupwards at speed 0.4
                    wait 2 ticks
                stop loop

Hypixel Delivery Man system is using armor stands in my opinion.
 
  • Like
Reactions: NewbyZ
code_language.skript:
command /spawnpushingitem:
    trigger:
        drop 1 of ender chest at location of player
        loop all entities in radius 2 of player:
            loop-entity is a dropped item:
                loop 10 times:
                    push loop-entityupwards at speed 0.4
                    wait 2 ticks
                stop loop

Hypixel Delivery Man system is using armor stands in my opinion.

d33d7c2fa71eabc43ca68cb22580e2cf.png


Requires an addon?
[doublepost=1496308516,1496307749][/doublepost]Okey fixed
code_language.skript:
push loop-entity upwards at speed 0.4
Space was missing xD

Thanks :emoji_grinning:
[doublepost=1496308670][/doublepost]Any idea to do not stack items when spawning? :emoji_confused:
 
You just need to make the item being different. In case you want to spawn a item just as effect, you can name it with a random name.
like
code_language.skript:
drop a stone named "&cUnstackable: %random integer between 0 and 99999%"
#Using a color in name so it can't be named by a player

But, if you want the player catch the item as a normal item, just remove its name:
code_language.skript:
on pick up:
    if name of event-item contains "&cUnstackable":
        clear name of event-item
Just a example, depending of your situation, you will need other events, such as when a hopper gets a item.
 
  • Like
Reactions: NewbyZ
Status
Not open for further replies.