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!
on place of spawner:
set {_owner} to owner of island at location of player
if {isspanwer::%{_owner}%} is not set:
set {isspanwer::%{_owner}%} to true
if {isspanwer::%{_owner}%} is true:
cancel event
send "YOU CAN NOT PLACE MORE THAN ONE SPAWNER ON THIS ISLAND"
on break of spawner:
set {_owner} to owner of island at location of player
set {isspanwer::%{_owner}%} to false
on place of spawner:
if name of player's tool is "&b&lPCNW &9» &eCoin Spawner":
set {_owner} to owner of island at location of player
if {isspanwer::%{_owner}%} is not set:
set {isspanwer::%{_owner}%} to true
if {isspanwer::%{_owner}%} is true:
cancel event
send "YOU CAN NOT PLACE MORE THAN ONE SPAWNER ON THIS ISLAND"
on break of spawner:
set {_owner} to owner of island at location of player
set {isspanwer::%{_owner}%} to false
on place of brick block:
if name of player's tool is "&b&lPCNW &9» &eCoin Spawner":
create holo object "&eCoin &6Spawner;ItemStack:Gold Nugget;;&6Sahibi &9» &e%player%;&6Süre &9» &e10 Saniye;&6Miktar &9» &e1" with id "%event-block's location%" at location 2.8 meters above block
set {_location} to location of targeted block
set {demirspawner1::%{_location}%} to {_location}
set {_x} to x coord of event-location
set {_y} to y coord of event-location
set {_z} to z coord of event-location
wait 2 tick
execute player command "setblock %{_x}% %{_y}% %{_z}% brick_block 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:gold_nugget,Count:1b}},SpawnCount:0,SpawnRange:0,RequiredPlayerRange:50,Delay:0,MinSpawnDelay:0,MaxSpawnDelay:00,MaxNearbyEntities:0}"
send "&bPCNW &9» &aKazma ile kırınca geri alabilirsin." to player
on break of brick block:
if {demirspawner1::%location of targeted block%} is set:
set block to air
delete holo object "%event-block's location%"
remove location of targeted block from {demirspawner1::*}
clear {demirspawner1::%location of targeted block%}
execute console command "give %player% brick_block 1 name:&b&lPCNW_&9»_&eCoin_Spawner"
send "&bPCNW &9» &aSpawnerin geri alındı." to player
on place of spawner:
set {_owner} to asb owner of island at location of player
if {isspanwer::%{_owner}%} is not set:
set {isspanwer::%{_owner}%} to true
if {isspanwer::%{_owner}%} is true:
cancel event
send "YOU CAN NOT PLACE MORE THAN ONE SPAWNER ON THIS ISLAND"
on break of spawner:
set {_owner} to asb owner of island at location of player
set {isspanwer::%{_owner}%} to false
on place of brick block:
if name of player's tool is "&b&lPCNW &9» &eCoin Spawner":
set {_owner} to asb owner of island at location of player
create holo object "&eCoin &6Spawner;ItemStack:Gold Nugget;;&6Sahibi &9» &e%player%;&6Süre &9» &e10 Saniye;&6Miktar &9» &e1" with id "%event-block's location%" at location 2.8 meters above block
set {_location} to location of targeted block
set {demirspawner1::%{_location}%} to {_location}
set {_x} to x coord of event-location
set {_y} to y coord of event-location
set {_z} to z coord of event-location
wait 2 tick
execute player command "setblock %{_x}% %{_y}% %{_z}% brick_block 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:gold_nugget,Count:1b}},SpawnCount:0,SpawnRange:0,RequiredPlayerRange:50,Delay:0,MinSpawnDelay:0,MaxSpawnDelay:00,MaxNearbyEntities:0}"
send "&bPCNW &9» &aKazma ile kırınca geri alabilirsin." to player
if {isspanwer::%{_owner}%} is not set:
set {isspanwer::%{_owner}%} to true
if {isspanwer::%{_owner}%} is true:
delete holo object "%event-block's location%"
remove location of targeted block from {demirspawner1::*}
clear {demirspawner1::%location of targeted block%}
execute console command "give %player% brick_block 1 name:&b&lPCNW_&9»_&eCoin_Spawner"
send "&bPCNW &9» &aSpawnerin geri alındı." to player
send "YOU CAN NOT PLACE MORE THAN ONE SPAWNER ON THIS ISLAND"
on break of brick block:
set {_owner} to asb owner of island at location of player
set {isspanwer::%{_owner}%} to false
delete holo object "%event-block's location%"
remove location of targeted block from {demirspawner1::*}
clear {demirspawner1::%location of targeted block%}
execute console command "give %player% brick_block 1 name:&b&lPCNW_&9»_&eCoin_Spawner"
send "&bPCNW &9» &aSpawnerin geri alındı." to player
command /CoinSpawner:
trigger:
give 1 brick block named "&bPCNW &9» &eCoin Spawner" to player
on place of brick block:
if name of player's tool is "&bPCNW &9» &eCoin Spawner":
create holo object "&eCoin &6Spawner;ItemStack:Gold Nugget;;&6Sahibi &9» &e%player%;&6Süre &9» &e10 Saniye;&6Miktar &9» &e1" with id "%event-block's location%" at location 2.8 meters above block
set {_location} to location of targeted block
set {coinspawner::%{_location}%} to {_location}
set {_x} to x coord of event-location
set {_y} to y coord of event-location
set {_z} to z coord of event-location
wait 2 tick
execute player command "setblock %{_x}% %{_y}% %{_z}% brick_block 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:gold_nugget,Count:1b}},SpawnCount:0,SpawnRange:0,RequiredPlayerRange:50,Delay:0,MinSpawnDelay:0,MaxSpawnDelay:00,MaxNearbyEntities:0}"
on break of brick block:
if {coinspawner::%location of targeted block%} is set:
cancel event
set block to air
delete holo object "%event-block's location%"
remove location of targeted block from {coinspawner::*}
clear {coinspawner::%location of targeted block%}
give 1 brick block named "&bPCNW &9» &eCoin Spawner" to player
every 10 second:
loop {coinspawner::*}:
drop 1 gold nugget named "&eCoin" at block 0 above loop-value
command /CoinSpawner:
trigger:
give 1 brick block named "&bPCNW &9» &eCoin Spawner" to player
on place of brick block:
set {_owner} to asb owner of island at location of player
if {isspanwer::%{_owner}%} is not set:
set {isspanwer::%{_owner}%} to true
if name of player's tool is "&bPCNW &9» &eCoin Spawner":
create holo object "&eCoin &6Spawner;ItemStack:Gold Nugget;;&6Sahibi &9» &e%player%;&6Süre &9» &e10 Saniye;&6Miktar &9» &e1" with id "%event-block's location%" at location 2.8 meters above block
set {_location} to location of targeted block
set {coinspawner::%{_location}%} to {_location}
set {_x} to x coord of event-location
set {_y} to y coord of event-location
set {_z} to z coord of event-location
wait 2 tick
execute player command "setblock %{_x}% %{_y}% %{_z}% brick_block 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:gold_nugget,Count:1b}},SpawnCount:0,SpawnRange:0,RequiredPlayerRange:50,Delay:0,MinSpawnDelay:0,MaxSpawnDelay:00,MaxNearbyEntities:0}"
stop
if {isspanwer::%{_owner}%} is true:
cancel event
send "YOU CAN NOT PLACE MORE THAN ONE SPAWNER ON THIS ISLAND" # << ------ EDIT TO YOUR LIKING
stop
on break of brick block:
if {coinspawner::%location of targeted block%} is set:
cancel event
set block to air
delete holo object "%event-block's location%"
remove location of targeted block from {coinspawner::*}
clear {coinspawner::%location of targeted block%}
give 1 brick block named "&bPCNW &9» &eCoin Spawner" to player
set {_owner} to asb owner of island at location of player
delete {isspanwer::%{_owner}%}
every 10 second:
loop {coinspawner::*}:
drop 1 gold nugget named "&eCoin" at block 0 above loop-value