Spawn items in a one block radius of a block

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

Gloozzy

Member
Oct 24, 2021
1
0
1
16
is there a way to spawn items in a 1 block radius

my current code (it only spawns on the black carpet atm)

set {_itemdrop.loc} to location at 214.500, 74, 142.500 in world "world"
drop 1 coal at {_itemdrop.loc} without velocity

unknown_47.png
 
To start you will have to loop all of the blocks in a radius 1 of the generator, this will return the location of all 9 of the blocks.
Inside the loop you will want to set a variable ({_spawnloc} for example) to a location 1 block above the loop-block, and then spawn 1 coal at the location of the variable.
 
Status
Not open for further replies.