options:
delay: 2 # Ne Kadar Süreyle Çıkacağı
count: 1 # Kaç Tane Çıkacağı
prefix: &8[&aSpawner&8]
command /demirspawner [<player>] [<integer>]:
permission: admin.spawner
trigger:
execute console command "give %arg 1% 52 %arg 2% name:&fIron_&bSpawner"
on place of a mob spawner:
if name of player's tool is "&fIron &bSpawner":
set {_x} to x coord of event-location
set {_y} to y coord of event-location
set {_z} to z coord of event-location
execute console command "manuaddp %player% minecraft.command.setblock"
wait 0.3 seconds
execute player command "setblock %{_x}% %{_y}% %{_z}% minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:iron_ingot,Count:1}},SpawnCount:{@count},SpawnRange:2,RequiredPlayerRange:10,delay:{@delay},MinSpawnDelay:40,MaxSpawnDelay:100,MaxNearbyEntities:9999}"
execute console command "manudelp %player% minecraft.command.setblock"
set {_1} to location of event-block