Solved Teleporting item entities

  • 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 community!

    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.
Apr 19, 2018
3
0
0
Skript bensku 2.4 alpha | Minecraft 1.14.2

I'm currently trying to make an item magnet script, but I can't because there doesn't appear to be any way to teleport item entities.
Is this correct, or did I just miss something...
 
Skript bensku 2.4 alpha | Minecraft 1.14.2

I'm currently trying to make an item magnet script, but I can't because there doesn't appear to be any way to teleport item entities.
Is this correct, or did I just miss something...
What have you tried so far?
Because yes it does work
 
Well, it has to be in a radius, so my first thought was:
Code:
teleport all items within 8 blocks of the event-player to the event-player
But that spat out
Code:
event-player is not a world
Then I removed the radius:
Code:
teleport all items to the event-player
But then it said
Code:
Can't understand this condition/effect: teleport all items to the event-player
This went on with me replacing item with "itemstacks", "item stacks" etc.

I really want to just get to the bottom of this
 
I tried this and it worked:
code_language.skript:
command /test:
    trigger:
        loop all entities in radius 10 around player where [entity input is a dropped item]:
            teleport loop-entity to player
 
Well, it has to be in a radius, so my first thought was:
Code:
teleport all items within 8 blocks of the event-player to the event-player
But that spat out
Code:
event-player is not a world
Then I removed the radius:
Code:
teleport all items to the event-player
But then it said
Code:
Can't understand this condition/effect: teleport all items to the event-player
This went on with me replacing item with "itemstacks", "item stacks" etc.

I really want to just get to the bottom of this
Try `dropped items` instead of `items`
 
Try `dropped items` instead of `items`
correct, I just tried this also and it worked
code_language.skript:
command /test:
    trigger:
        teleport all dropped items in radius 10 around player to player
 
It works!
Thanks for your help, I've been stuck on this for a little while. I guess I was trying to be a bit too specific...
 
Status
Not open for further replies.