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!
You can always check out skUnity Downloads for downloads and any other information about Skript!
Ok so when I place a stone named "&6Stone spawner" it makes it so it drops 2-4 stone around the block and when you mine it it drops the stone named "&6Stone spawner" so do I need like a place to store all the like locations where its placed so when it gets mined it drops the stone ? How would I make that?I really don't understand your mean :/
options:
timedrop: 5
on place of a stone:
if name of player's tool is "&6Stone Spawner":
set {StoneSpawner.%location of event-block%} to location of event-block
add {StoneSpawner.%location of event-block%} to {Store.StoneSpawner::*}
on break a stone:
if location of event-block is {Store.StoneSpawner::*}:
drop a stone named "&6Stone Spawner"
every {@timedrop} seconds in "world":
drop random number between 2 and 4 at {Store.StoneSpawner::*}
Will it work if I place multiple stone spawners?Code may by is:
code_language.skript:options: timedrop: 5 on place of a stone: if name of player's tool is "&6Stone Spawner": set {StoneSpawner.%location of event-block%} to location of event-block add {StoneSpawner.%location of event-block%} to {Store.StoneSpawner::*} on break a stone: if location of event-block is {Store.StoneSpawner::*}: drop a stone named "&6Stone Spawner" every {@timedrop} seconds in "world": drop random number between 2 and 4 at {Store.StoneSpawner::*}
Yup, if that code worksWill it work if I place multiple stone spawners?
There was an error and the code after the fix was:Can you check my suits post
options:
timedrop: 5
on place of a stone:
if name of player's tool is "&6Stone Spawner":
set {StoneSpawner.%location of event-block%} to location of event-block
add {StoneSpawner.%location of event-block%} to {Store.StoneSpawner::*}
on break a stone:
if location of event-block is {Store.StoneSpawner::*}:
drop a stone named "&6Stone Spawner"
every {@timedrop} seconds in "world":
set {droprandom} to random number between 2 and 4
drop {droprandom} at {Store.StoneSpawner::*}
It dosnt remove the location when you break itThere was an error and the code after the fix was:
code_language.skript:options: timedrop: 5 on place of a stone: if name of player's tool is "&6Stone Spawner": set {StoneSpawner.%location of event-block%} to location of event-block add {StoneSpawner.%location of event-block%} to {Store.StoneSpawner::*} on break a stone: if location of event-block is {Store.StoneSpawner::*}: drop a stone named "&6Stone Spawner" every {@timedrop} seconds in "world": set {droprandom} to random number between 2 and 4 drop {droprandom} at {Store.StoneSpawner::*}
it dosnt remove the location when you break it so it still spawns stone around it after you break itThere was an error and the code after the fix was:
code_language.skript:options: timedrop: 5 on place of a stone: if name of player's tool is "&6Stone Spawner": set {StoneSpawner.%location of event-block%} to location of event-block add {StoneSpawner.%location of event-block%} to {Store.StoneSpawner::*} on break a stone: if location of event-block is {Store.StoneSpawner::*}: drop a stone named "&6Stone Spawner" every {@timedrop} seconds in "world": set {droprandom} to random number between 2 and 4 drop {droprandom} at {Store.StoneSpawner::*}
Sorry, I forgot to remove the value from the list when breaking the blockIt dosnt remove the location when you break it
it dosnt remove the location when you break it so it still spawns stone around it after you break it
options:
timedrop: 5
on place of a stone:
if name of player's tool is "&6Stone Spawner":
set {StoneSpawner.%location of event-block%} to location of event-block
add {StoneSpawner.%location of event-block%} to {Store.StoneSpawner::*}
on break a stone:
if location of event-block is {Store.StoneSpawner::*}:
drop a stone named "&6Stone Spawner"
remove {StoneSpawner.%location of event-block%} from {Store.StoneSpawner::*}
every {@timedrop} seconds in "world":
set {droprandom} to random number between 2 and 4
drop {droprandom} at {Store.StoneSpawner::*}