on place of a mob spawner:
set {_someVariable} to name of held item of player
{_someVariable} is "&bElmas Blok Spawner"
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 0.3 second
execute console command "manuaddp %player% minecraft.command.setblock"
execute player command "setblock %{_x}% %{_y}% %{_z}% minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:57,Count:1}},SpawnCount:1,SpawnRange:2,RequiredPlayerRange:10,delay:2,MinSpawnDelay:40,MaxSpawnDelay:100,MaxNearbyEntities:9999}"
send "&6&l > &bElmas Blok Spawner Basariyla Koydun!"
set {_1} to location of event-block
add {_1} to {spawner::*}
execute console command "manudelp %player% minecraft.command.setblock"
on break of mob spawner:
tool of player is any pickaxe of silk touch
set {_1} to location of event-block
loop {elmasblokkspawner::*}:
loop-value is {_1}
cancel event
set block at {_1} to air
drop a mob spawner named "&bElmas Blok Spawner" at {_1}
remove {_1} from {elmasblokkspawner::*}
command /spelmasblok:
permission: SP.Kurucu
trigger:
if player is op:
give a mob spawner named "&bElmas Blok Spawner" to player