Solved Item on ground name PLZ HELP

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

chimchambi

Member
Dec 4, 2019
30
0
0
29
How do i check if dropped item is a specific item. I have tried "if loop-entity is stone" but doesn't work and i have tried so many other things plz help

example
on rightclick:
loop all dropped items in radius 5 around location of event-block:
#check the specific dropped/looped item



EDIT: (solved)

command /test:
trigger:
loop all dropped items in radius 30 around location of player:

if "%item of entity loop-entity%" is "cactus":
broadcast "cactus is on the ground"
 
Last edited:
well.. sorry but dont quit undestand....

any chance that you can help me with the codeline??

I am trying to get a specific or more items to check if its looped

would really appricate your help <3
[doublepost=1579814346,1579785112][/doublepost]anyone?
[doublepost=1579881285][/doublepost]plz someone help
[doublepost=1579982933][/doublepost]bump?
 
what exactly do you need because i quite dont understand what you wrote.
You want to check items on ground ?
 
Okay hi.

So i am trying to loop some items on the ground in a radius and check if the looped item on ground is cactus or something else

but i dont know how to do it and i have tried everything i could but nothing works.

Here is my code so far


loop {hopper.location::*}:


set {_count} to 0
#loop all dropped items in radius 30 around location of loop-value-1:
loop all entities in radius 30 around location of loop-value-1 where [entity input is a dropped item]:
#check if the looped item on ground is cactus or something else (but i dont know how to)
#my coder after it check




I really hope you can help me plz
 
Code:
Every ... Ticks:
     Loop all Players:
          Loop all entitys in Radius 5 arround loop-player:
               If loop-entity is ...:
                    #Your code
I don't Testes it before.
 
so the loop-entity on dropped item is "Dropped item" i can't check if the dropped item is a specific item... how do i do that?
 
I am trying to get it everytime a item is spawned/is on the ground not when you use the on drop event :emoji_slight_smile:
 
Mhh gives me an error when i am trying to use it "Can't understand this expression: items within loop-entity (test.sk, line 46: if "%items within loop-entity%" is "spawn_egg":')"
 
this script tells you if there is item on ground
Code:
on rightclick with a stick:
    loop all dropped items in radius 5 of event-block:
        if {_arg1} is not set:
            set {_arg1} to true
            send "item" to player
        else:
            set {_arg1} to false
            send "no item" to player
 
this script tells you if there is item on ground
Code:
on rightclick with a stick:
    loop all dropped items in radius 5 of event-block:
        if {_arg1} is not set:
            set {_arg1} to true
            send "item" to player
        else:
            set {_arg1} to false
            send "no item" to player
I am not trying to get if there is item on the ground. I am trying to check what kind of item there is on the ground
[doublepost=1580062459,1580062394][/doublepost]
Code:
if "%loop-entity%" is "spawn_egg":
doesn't work. "loop-entity" is a dropped item, and because of that i can't check if the item is a hopper or something else...

man its frustrating...
 
well... i found out how:

command /test:
trigger:
loop all dropped items in radius 30 around location of player:

if "%item of entity loop-entity%" is "cactus":
broadcast "cactus is on the ground"
 
well... i found out how:

command /test:
trigger:
loop all dropped items in radius 30 around location of player:

if "%item of entity loop-entity%" is "cactus":
broadcast "cactus is on the ground"
see you made it your self :emoji_grinning:
 
Status
Not open for further replies.