[HELP?] How to attract items to player

Started by MattiDragon835 on Sun, 10/20/2019 - 10:42

Topic category: Help with MCreator modding

Last seen on 12:44, 21. Nov 2019
Joined Jun 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
[HELP?] How to attract items to player
Sun, 10/20/2019 - 10:42 (edited)

I am making a mod with a potion that attracts items(and, or mobs) to the player(or entity). I tried to use a minecraft command but it didn't work:

---------------------------------------------------------------OnPotionTick------------------------------------------------------------------------------------------------

Execute command/ [create text with] [create text with] [create text with] "tp @e[r"

                                                                                                                  [[[Number dependency:amplifier]+[1]]x[10]]

                                                                                      [create text with] "]"

                                                                                                                  [Number dependency:x]

                                                           [create text with] [create text with] " "

                                                                                                                  [Number dependency:y]

                                                                                      [create text with] " "

                                                                                                                  [Number dependency:z]

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

So /tp @e[r=amplifier X 10] x y z

Does anybody know how to make this work?

 

Edited by MattiDragon835 on Sun, 10/20/2019 - 10:42