command /süngersp:
permission: sp.dsp
trigger:
execute console command "give %player% 52 5 name:&aSünger_Spawner"
on place of a mob spawner:
if name of player's tool is "&aSünger 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
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:19,Count:1}},SpawnCount:{@count},SpawnRange:2,RequiredPlayerRange:10,delay:{@delay},MinSpawnDelay:40,MaxSpawnDelay:{@delay},MaxNearbyEntities:9999}"
send "&9&lPirate&6&lNW &8» &7Sünger Spawner koyuldu!"
execute console command "manudelp %player% minecraft.command.setblock"
set {_1} to location of event-block
add {_1} to {süngerssp::*}
on break of mob spawner:
tool of player is any pickaxe of silk touch
set {_1} to location of event-block
loop {süngerssp::*} :
loop-value is {_1}
cancel event
set block at {_1} to air
execute console command "give %player% 52 1 name:&aSünger_Spawner"
remove {_1} from {süngerssp::*}