command /endsp1:
permission: op
permission message: {@prefix} &8> &9Bu komutu kullanamazsın.
trigger:
give 1 mob spawner named "&eEndTasi &cSpawner" to player
on place of mob spawner:
if name of player's tool is "&eEndTasi &cSpawner":
set {_location} to location of targeted block
set {endspawner1::%{_location}%} to {_location}
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 2 tick
execute player command "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:end_stone,Count:1b}},SpawnCount:1,SpawnRange:2,RequiredPlayerRange:15,Delay:3,MinSpawnDelay:80,MaxSpawnDelay:100,MaxNearbyEntities:9999}"
wait 2 tick
execute console command "manudelp %player% minecraft.command.setblock"
send "{@prefix} &8> &9Spawneri kazma ile kırabilirsin." to player
send "{@prefix} &8> &9Kırınca sana verilecektir." to player
on break of mob spawner:
if {endspawner1::%location of targeted block%} is set:
cancel event
set block to air
remove location of targeted block from {endspawner1::*}
clear {endspawner1::%location of targeted block%}
give 1 mob spawner named "&eEndTasi &cSpawner" to player
send "{@prefix} &8> &9Spawnerin verildi." to player
command /denizsp1:
permission: op
permission message: {@prefix} &8> &9Bu komutu kullanamazsın.
trigger:
give 1 mob spawner named "&eDenizFeneri &cSpawner" to player
on place of mob spawner:
if name of player's tool is "&eDenizFeneri &cSpawner":
set {_location} to location of targeted block
set {denizspawner1::%{_location}%} to {_location}
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 2 tick
execute player command "setblock %{_x}% %{_y}% %{_z}% mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:minecraft:sea_lantern,Count:1b}},SpawnCount:1,SpawnRange:2,RequiredPlayerRange:15,Delay:3,MinSpawnDelay:80,MaxSpawnDelay:100,MaxNearbyEntities:9999}"
wait 2 tick
execute console command "manudelp %player% minecraft.command.setblock"
send "{@prefix} &8> &9Spawneri kazma ile kırabilirsin." to player
send "{@prefix} &8> &9Kırınca sana verilecektir." to player
on break of mob spawner:
if {denizspawner1::%location of targeted block%} is set:
cancel event
set block to air
remove location of targeted block from {denizspawner1::*}
clear {denizspawner1::%location of targeted block%}
give 1 mob spawner named "&eDenizFeneri &cSpawner" to player
send "{@prefix} &8> &9Spawnerin verildi." to player