#item location

1 messages · Page 1 of 1 (latest)

sick hedge
#

when i am trying to get the location of an item it doesn't work
this is my code rn:

on drop of diamond:
  wait 10 ticks
  set {_x} to x-coordinate of dropped item
  set {_y} to y-coordinate of dropped item
  set {_z} to z-coordinate of dropped item
  broadcast "%{_x}%"
  broadcast "%{_y}%"
  broadcast "%{_z}%"
  apply potion of resistance of tier 2 to all players in radius 100 around location({_x}, {_y}, {_z}) for 10 seconds
sick hedge
#

that was when i was trying to see the location it gives

#

and it only says <none>

graceful mason
#

simplier

sick hedge
#
on drop of diamond:
  set {_loc} to location of dropped item
  apply potion of resistance of tier 2 to all players in radius 100 around {_loc} for 10 seconds
#

Like this???

sick hedge
#

i tried it and the code cant move past the set {_loc} to location of dropped item line

#

and as such breaks

craggy geode
#

try broadcasting the local variable right after you set it to see if it has any value

sick hedge
#

ok

#

it doesnt get past the set location bit

craggy geode
#

try to set the location to the location at event-location

sick hedge
#

tried that and same issue

craggy geode
#

set {_loc} to location at event-location you did this?

sick hedge
#

oh i think i mis read that i used event-item

craggy geode
sick hedge
#

it worked

craggy geode
graceful mason
#

Is there an error?

graceful mason
sick hedge
graceful mason
sick hedge
#

essenatlly when it went to that line it never went to the next one

graceful mason
#

if it didn't continue there has to be an error

craggy geode
#

how are you confused?

graceful mason
#

that's great to hear

sick hedge
#

Lol you literally said nice to me saying it was fixed