on place of a mob spawner:
set {_someVariable} to name of held item of player
{_someVariable} is "&b&lDiamond 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 1 second
execute console command "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:diamond,Count:1b}},SpawnCount:1,SpawnRange:5,RequiredPlayerRange:140,Delay:10,MinSpawnDelay:0,MaxSpawnDelay:00,MaxNearbyEntities:1}"
send "&6PREFİX &e&l » &bElmas spawnerini başarıyla koydun!"
set {_1} to location of event-block
add {_1} to {elmasspawner::*}
on break of mob spawner:
tool of player is any pickaxe of silk touch
set {_1} to location of event-block
loop {elmasspawner::*}:
loop-value is {_1}
cancel event
set block at {_1} to air
send "&6PREFİX &e&l » &bElmas spawnerini başarıyla kırdın!"
drop a mob spawner named "&b&lDiamond Spawner" at {_1}
remove {_1} from {elmasspawner::*}
command /itemspawner [<text>]:
trigger:
if player is op:
if arg 1 is "elmas":
give a mob spawner named "&b&lDiamond Spawneri" to player