Problem with dropping item..

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

HSW

Member
May 3, 2020
4
0
0
17
Code:
on load:
    add location at 34.5, 66, 95.5 in world "bedwars" to {bedwars.location.mineral::*}

#I am skipping this part...

every 1 second:
    loop all items location at 34.5, 66, 95.5 in world "bedwars":
        add 1 to {_cnt}
    if {_cnt} isn't more than 64:
        drop 1 iron ingot at {bedwars.location.mineral::*} without velocity

This is part of my code. I have two problem..
1. console error : Can't understand this loop: 'loop all items location at 34.5, 66, 95.5 in world "bedwars"' (test.sk, line 7: loop all items location at 34.5, 66, 95.5 in world "bedwars":')
2. Items are not dropping!!

What should I do? I've been working on this for five days.
(Sorry for bed, I mean bad english...)
 
Code:
on load:
    add location at 34.5, 66, 95.5 in world "bedwars" to {bedwars.location.mineral::*}

#I am skipping this part...

every 1 second:
    loop all items location at 34.5, 66, 95.5 in world "bedwars":
        add 1 to {_cnt}
    if {_cnt} isn't more than 64:
        drop 1 iron ingot at {bedwars.location.mineral::*} without velocity

This is part of my code. I have two problem..
1. console error : Can't understand this loop: 'loop all items location at 34.5, 66, 95.5 in world "bedwars"' (test.sk, line 7: loop all items location at 34.5, 66, 95.5 in world "bedwars":')
2. Items are not dropping!!

What should I do? I've been working on this for five days.
(Sorry for bed, I mean bad english...)
Try write at location instead of location at. Or, change the loop to:
code_language.skript:
loop all items in world "bedwars":
 
Try write at location instead of location at. Or, change the loop to:
code_language.skript:
loop all items in world "bedwars":
So I change loop to:
Code:
loop all items in world "bedwars":
I thought this should work, of course. but....
Console error: Can't understand this loop: 'loop all items in world "bedwars"' (test.sk, line 7: loop all items in world "bedwars":')
 
So I change loop to:
Code:
loop all items in world "bedwars":
I thought this should work, of course. but....
Console error: Can't understand this loop: 'loop all items in world "bedwars"' (test.sk, line 7: loop all items in world "bedwars":')
Then, try:
code_language.skript:
loop all dropped items in world "bedwars":
 
First off all:

Code:
loop all items location at 34.5, 66, 95.5 in world "bedwars":

yes loop items at a location but at what radius?

Code:
loop all items at location 34.5, 66, 95.5 in world "bedwars" in radius 10:

Secondly:

Code:
drop 1 iron ingot at {bedwars.location.mineral::*} without velocity

It should work but i think its having trouble with the list.
idk what ur intention is but:

Code:
drop 1 iron ingot at random element out of {bedwars.location.mineral::*} without velocity

Code:
loop {bedwars.location.mineral::*}:
   drop 1 iron ingot at loop-value without velocity
 
First off all:

Code:
loop all items location at 34.5, 66, 95.5 in world "bedwars":

yes loop items at a location but at what radius?

Code:
loop all items at location 34.5, 66, 95.5 in world "bedwars" in radius 10:

Secondly:

Code:
drop 1 iron ingot at {bedwars.location.mineral::*} without velocity

It should work but i think its having trouble with the list.
idk what ur intention is but:

Code:
drop 1 iron ingot at random element out of {bedwars.location.mineral::*} without velocity

Code:
loop {bedwars.location.mineral::*}:
   drop 1 iron ingot at loop-value without velocity

Ok I gave up the loop in radius thing...
But...
Code:
    loop {bedwars.location.mineral::*}:
        drop 1 iron ore at loop-value without velocity
I did this... and console doesn't output this error.
But It's still not working...
 
Ok I gave up the loop in radius thing...
But...
Code:
    loop {bedwars.location.mineral::*}:
        drop 1 iron ore at loop-value without velocity
I did this... and console doesn't output this error.
But It's still not working...

then the values in {bedwars.location.mineral::*} must be wrong can u send how u set these values
 
and what if you do this
Code:
every 5 seconds:
    loop all players:
        loop all blocks in radius 5 around loop-player:
            if loop-block is iron block:
                drop a iron ingot at loop-block's position
 
Status
Not open for further replies.