on place of a mob spawner:
create holo object "&a&lDiamond Spawner" with id "%event-block's location%" at location 1.5 meters above block
set {_someVariable} to name of held item of player
{_someVariable} is "&eDiamond 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
run player command "/setblock %{_x}% %{_y}% %{_z}% minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:264,Count:3}},SpawnCount:2,SpawnRange:4,RequiredPlayerRange:10,Delay:60,MinSpawnDelay:50,MaxSpawnDelay:15,MaxNearbyEntities:1}" as op
send "&e&l » &eDiamond Spawner &aBaşarıyla Yerleşti"
set {_1} to location of event-block
add {_1} to {elmasp::*}
on break of mob spawner:
delete holo object "%event-block's location%"
tool of player is any pickaxe of silk touch
set {_1} to location of event-block
loop {elmasp::*}:
loop-value is {_1}
cancel event
set block at {_1} to air
drop a 52 named "&eDiamond Spawner" at {_1}
remove {_1} from {elmasp::*}