#check if an item can exist as a dropped item
1 messages · Page 1 of 1 (latest)
!drop all items at me
!set {Dropped::*} to all dropped items
For example, a bamboo sprout can get out of "all items", which is not able to exist as a dropped item
he's talking about items that have placed variants example "Wall banners" only standing banners can be held
aah okay
i was assuming it was already an item in an inventory, thought they wanted to know which could then go onto the ground

This code doesn't work, the item dies immediately.
Could something be wrong?
on drop:
wait 1 tick
while event-dropped item is alive:
set {_j} to random element of all dropped items
set event-dropped item to {_j}
wait 5 tick
Same thing, doesn't work
Huh
no
drop all the items and add them to a variable
so you can save the items
no
what the flipp
on drop:
wait 1 tick
while event-dropped item exists:
set {_j::*} to all dropped items
set event-dropped item to random element of {_j::*}
wait 5 tick
no
thats gonna set {_j::*} to all dropped items that are currently loaded in your world
(actual entities that are already on the ground at that instant)
you're gonna have to define this list before hand (globally), and then access it
command /d:
trigger:
drop all items at player
set slot (integers between 0 and 40) of player's inventory to 64 stone
set {Items::*} to all dropped items in radius 5 around player
wait 1 second
kill all dropped items in radius 5 around player
So there is no plugin-prepared list of all possible items to drop?
wow
You really are brilliant
thanks!