[ YARDIM ] Spawner ID Leri...

ForcEmir

Elmas Madencisi
En iyi cevaplar
0
Merhaba Arkadaşlar bi skript kodladımda spawner kırınca direk envantere gelme skripti fakat IRON GOLEM için uyumlu yapamadım ne yazmam gerekli "data value of block is X:" KISMINA.

Kod:
on break of mob spawner:
    set event-block to air
    data value of block is X:
        execute console command "/silkspawner give %player% irongolem"
 

IMGS ROYALE

play.imaginesmc.net
En iyi cevaplar
0
Bu skript kodlarını incele belki yardımı dokunur.
options:

p: &7[&cLight Spawners&7]&r

# This the the permission message
pm: &4You don't have access to this command.

command /test2:
trigger:
send "%{testspawner::*}%"

on skript load:
delete {spawnertypes::*}
wait 2 tick
set {spawnertypes::creeper} to "creeper"
set {spawnertypes::zombie} to "zombie"
set {spawnertypes::zombiepigman} to "zombiepigman"
set {spawnertypes::skeleton} to "skeleton"
set {spawnertypes::spider} to "spider"
set {spawnertypes::cavespider} to "cavespider"
set {spawnertypes::cow} to "cow"
set {spawnertypes::bat} to "bat"
set {spawnertypes::chicken} to "chicken"
set {spawnertypes::pig} to "pig"
set {spawnertypes::rabbit} to "rabbit"
set {spawnertypes::sheep} to "sheep"
set {spawnertypes::squid} to "squid"
set {spawnertypes::villager} to "villager"
set {spawnertypes::enderman} to "enderman"
set {spawnertypes::blaze} to "blaze"
set {spawnertypes::ghast} to "ghast"
set {spawnertypes::magmacube} to "magmacube"
set {spawnertypes::silverfish} to "silverfish"
set {spawnertypes::slime} to "slime"
set {spawnertypes::witch} to "witch"
set {spawnertypes::witherskeleton} to "witherskeleton"
set {spawnertypes::horse} to "horse"
set {spawnertypes::ocelot} to "ocelot"
set {spawnertypes::wolf} to "wolf"
set {spawnertypes::giant} to "giant"
set {spawnertypes::enderdragon} to "enderdragon"
set {spawnertypes::wither} to "wither"
set {spawnertypes::endermite} to "endermite"
set {spawnertypes::guardian} to "guardian"
set {spawnertypes::mooshroom} to "mooshroom"
set {spawnertypes::irongolem} to "irongolem"
set {spawnertypes::snowman} to "snowman"




command /spawner [<text>] [<text>] [<text>] [<text>]:
trigger:
if arg 1 is not set:
send "{@p}&ePlease specify an argument, if you need help please type /spawner help."


if arg 1 is "help":
if player has permission "spawner.help":
send "&8---------&aLight Spanwers Help&8---------"
send "&7- &3/spawner help | &eDisplays Light spawners help information."
send "&7- &3/spawner give <Player Name> <Spawner Type> <Amount>| &eGives a specified player a spawner."
send "&7- &3/spawner set <Spawner Type> | &eSets a spawner that the player is looking at to the specified type."
send "&7- &3/spawner list | &eLists the currently available spawner types."
else:
send "{@pm}"


if arg 1 is "list":
if player has permission "spawner.list":
set {_list::*} to {spawnertypes::*}
set {_list::*} to {_var} split at ", "
send "{@p} &eAvailable Spawner Types: &6%{_list::*}%"


if arg 1 is "set":
if arg 2 is set:
if player has permission "spawner.set":
if targeted block is a 52:
if {spawnertypes::%arg 2%} is set:
if arg 2 is "zombiepigman":
set {_arg} to "pigzombie"
set {_loc} to location of targeted block
set spawner {_loc} to "%{_arg}%"
send "&eSpawner Changed!"
else if arg 2 is "horse":
set {_arg} to "EntityHorse"
else if arg 2 is "magmacube":
set {_arg} to "lavaslime"
else if arg 2 is "wither":
set {_arg} to "WitherBoss"
else if arg 2 is "ocelot":
set {_arg} to "ozelot"
else if arg 2 is "mooshroom":
set {_arg} to "mushroomcow"
else if arg 2 is "snowman" or "snowgolem":
set {_arg} to "snowman"
else if arg 2 is "irongolem":
set {_arg} to "villagergolem"
else if arg 2 is set:
set {_arg} to arg 2
set {_loc} to location of targeted block
set spawner {_loc} to "%{_arg}%"
send "&eSpawner Changed!"
else:
send "&eInvalid Mob Type. Do /spawner list for a list of available mobs."
else:
send "&eThat is not a spawner, you must look at it."
else:
send "{@pm}"

if arg 1 is "give":
if arg 2 is set:
if arg 3 is set:
if arg 4 is set:
if player has permission "spawner.give":
set {_amn} to arg 4 parsed as an integer
set {_pl} to arg 2 parsed as a player
if {spawnertypes::%arg 3%} is set:
execute console command "minecraft:give %{_pl}% minecraft:mob_spawner %{_amn}% 0 {display:{Name:""%arg 3% Spawner"",Lore:[""%arg 3%""]}}"
else:
send "&4Error:&e Invalid spawner type."
else:
send "{@pm}"
else:
send "Please specify an amount of spawners you wish to give."
else:
send "Please specify a spawner type you wish to give. If you are not sure, do /spawner list."

command lspawnerg <player> <integer> <text>:
executable by: console
permission: NO
trigger:
if arg 3 is set:
execute console command "minecraft:give %arg 1% minecraft:mob_spawner %arg 2% 0 {display:{Name:""%arg 3% Spawner"",Lore:[""%arg 3%""]}}"
on place of monster spawner:
player has permission "spawner.place"
set {_lorev} to the lore of player's tool
if {spawnertypes::%{_lorev}%} is set:
set {_lore} to the lore of player's tool
set {_name} to the name of player's tool
replace all " Spawner" in {_name} with ""
if {_lore} is equal to {_name}:
player has permission "spawner.place"
set spawner at location of event-block to its type
else:
cancel event
send "&4Error: &eThis is not a valid spawner."
else:
cancel event
send "&4Error: &eThis is not a valid spawner."

on break of mob spawner:
if player has permission "spawner.mine":
if player's tool is a diamond pickaxe of silk touch:
cancel event
execute console command "minecraft:give %player% minecraft:mob_spawner 1 0 {display:{Name:""%entity type of location of targeted block% Spawner"",Lore:[""%entity type of location of targeted block%""]}}"
send "{@p} &eSpawner has been mined."
set event-block to air



on sign change:
if player has permission "spawner.sign.create":
if line 1 is "[Spawner]":
set {_l1} to line 1
#amount
set {_l2} to line 2 parsed as an integer
#price
set {_l3} to line 3 parsed as an integer
#mob type
set {_l4} to line 4
if {_l2} is set:
if {_l3} is set:
if {spawnertypes::%{_l4}%} is set:
set line 1 to "<grey>[<blue>Spawner<grey>]<reset>"
set {spawners.loc::%location of event-block%} to location of event-block
send "{@p} Spawner sign succesfully created."

on right click on sign:
if {spawners.loc::%location of event-block%} is set:
set {_price} to line 3 parsed as an integer
set {_amnt} to line 2 parsed as an integer
set {_type} to line 4
set {_bal} to player's balance
set {_bal} to {_bal} + 1
if {_bal} is greater than {_price}:
execute console command "/lspawnerg %player% %{_amnt}% %{_type}%"
remove {_price} from player's balance
send "{@p} &eYou purchased %{_amnt}% %{_type}% spawner."
else:
send "{@p} &eYou do not have the required funds to purchase this."
 

ForcEmir

Elmas Madencisi
En iyi cevaplar
0
Bu skript kodlarını incele belki yardımı dokunur.
options:

p: &7[&cLight Spawners&7]&r

# This the the permission message
pm: &4You don't have access to this command.

command /test2:
trigger:
send "%{testspawner::*}%"

on skript load:
delete {spawnertypes::*}
wait 2 tick
set {spawnertypes::creeper} to "creeper"
set {spawnertypes::zombie} to "zombie"
set {spawnertypes::zombiepigman} to "zombiepigman"
set {spawnertypes::skeleton} to "skeleton"
set {spawnertypes::spider} to "spider"
set {spawnertypes::cavespider} to "cavespider"
set {spawnertypes::cow} to "cow"
set {spawnertypes::bat} to "bat"
set {spawnertypes::chicken} to "chicken"
set {spawnertypes::pig} to "pig"
set {spawnertypes::rabbit} to "rabbit"
set {spawnertypes::sheep} to "sheep"
set {spawnertypes::squid} to "squid"
set {spawnertypes::villager} to "villager"
set {spawnertypes::enderman} to "enderman"
set {spawnertypes::blaze} to "blaze"
set {spawnertypes::ghast} to "ghast"
set {spawnertypes::magmacube} to "magmacube"
set {spawnertypes::silverfish} to "silverfish"
set {spawnertypes::slime} to "slime"
set {spawnertypes::witch} to "witch"
set {spawnertypes::witherskeleton} to "witherskeleton"
set {spawnertypes::horse} to "horse"
set {spawnertypes::ocelot} to "ocelot"
set {spawnertypes::wolf} to "wolf"
set {spawnertypes::giant} to "giant"
set {spawnertypes::enderdragon} to "enderdragon"
set {spawnertypes::wither} to "wither"
set {spawnertypes::endermite} to "endermite"
set {spawnertypes::guardian} to "guardian"
set {spawnertypes::mooshroom} to "mooshroom"
set {spawnertypes::irongolem} to "irongolem"
set {spawnertypes::snowman} to "snowman"




command /spawner [<text>] [<text>] [<text>] [<text>]:
trigger:
if arg 1 is not set:
send "{@p}&ePlease specify an argument, if you need help please type /spawner help."


if arg 1 is "help":
if player has permission "spawner.help":
send "&8---------&aLight Spanwers Help&8---------"
send "&7- &3/spawner help | &eDisplays Light spawners help information."
send "&7- &3/spawner give <Player Name> <Spawner Type> <Amount>| &eGives a specified player a spawner."
send "&7- &3/spawner set <Spawner Type> | &eSets a spawner that the player is looking at to the specified type."
send "&7- &3/spawner list | &eLists the currently available spawner types."
else:
send "{@pm}"


if arg 1 is "list":
if player has permission "spawner.list":
set {_list::*} to {spawnertypes::*}
set {_list::*} to {_var} split at ", "
send "{@p} &eAvailable Spawner Types: &6%{_list::*}%"


if arg 1 is "set":
if arg 2 is set:
if player has permission "spawner.set":
if targeted block is a 52:
if {spawnertypes::%arg 2%} is set:
if arg 2 is "zombiepigman":
set {_arg} to "pigzombie"
set {_loc} to location of targeted block
set spawner {_loc} to "%{_arg}%"
send "&eSpawner Changed!"
else if arg 2 is "horse":
set {_arg} to "EntityHorse"
else if arg 2 is "magmacube":
set {_arg} to "lavaslime"
else if arg 2 is "wither":
set {_arg} to "WitherBoss"
else if arg 2 is "ocelot":
set {_arg} to "ozelot"
else if arg 2 is "mooshroom":
set {_arg} to "mushroomcow"
else if arg 2 is "snowman" or "snowgolem":
set {_arg} to "snowman"
else if arg 2 is "irongolem":
set {_arg} to "villagergolem"
else if arg 2 is set:
set {_arg} to arg 2
set {_loc} to location of targeted block
set spawner {_loc} to "%{_arg}%"
send "&eSpawner Changed!"
else:
send "&eInvalid Mob Type. Do /spawner list for a list of available mobs."
else:
send "&eThat is not a spawner, you must look at it."
else:
send "{@pm}"

if arg 1 is "give":
if arg 2 is set:
if arg 3 is set:
if arg 4 is set:
if player has permission "spawner.give":
set {_amn} to arg 4 parsed as an integer
set {_pl} to arg 2 parsed as a player
if {spawnertypes::%arg 3%} is set:
execute console command "minecraft:give %{_pl}% minecraft:mob_spawner %{_amn}% 0 {display:{Name:""%arg 3% Spawner"",Lore:[""%arg 3%""]}}"
else:
send "&4Error:&e Invalid spawner type."
else:
send "{@pm}"
else:
send "Please specify an amount of spawners you wish to give."
else:
send "Please specify a spawner type you wish to give. If you are not sure, do /spawner list."

command lspawnerg <player> <integer> <text>:
executable by: console
permission: NO
trigger:
if arg 3 is set:
execute console command "minecraft:give %arg 1% minecraft:mob_spawner %arg 2% 0 {display:{Name:""%arg 3% Spawner"",Lore:[""%arg 3%""]}}"
on place of monster spawner:
player has permission "spawner.place"
set {_lorev} to the lore of player's tool
if {spawnertypes::%{_lorev}%} is set:
set {_lore} to the lore of player's tool
set {_name} to the name of player's tool
replace all " Spawner" in {_name} with ""
if {_lore} is equal to {_name}:
player has permission "spawner.place"
set spawner at location of event-block to its type
else:
cancel event
send "&4Error: &eThis is not a valid spawner."
else:
cancel event
send "&4Error: &eThis is not a valid spawner."

on break of mob spawner:
if player has permission "spawner.mine":
if player's tool is a diamond pickaxe of silk touch:
cancel event
execute console command "minecraft:give %player% minecraft:mob_spawner 1 0 {display:{Name:""%entity type of location of targeted block% Spawner"",Lore:[""%entity type of location of targeted block%""]}}"
send "{@p} &eSpawner has been mined."
set event-block to air



on sign change:
if player has permission "spawner.sign.create":
if line 1 is "[Spawner]":
set {_l1} to line 1
#amount
set {_l2} to line 2 parsed as an integer
#price
set {_l3} to line 3 parsed as an integer
#mob type
set {_l4} to line 4
if {_l2} is set:
if {_l3} is set:
if {spawnertypes::%{_l4}%} is set:
set line 1 to "<grey>[<blue>Spawner<grey>]<reset>"
set {spawners.loc::%location of event-block%} to location of event-block
send "{@p} Spawner sign succesfully created."

on right click on sign:
if {spawners.loc::%location of event-block%} is set:
set {_price} to line 3 parsed as an integer
set {_amnt} to line 2 parsed as an integer
set {_type} to line 4
set {_bal} to player's balance
set {_bal} to {_bal} + 1
if {_bal} is greater than {_price}:
execute console command "/lspawnerg %player% %{_amnt}% %{_type}%"
remove {_price} from player's balance
send "{@p} &eYou purchased %{_amnt}% %{_type}% spawner."
else:
send "{@p} &eYou do not have the required funds to purchase this."
Umbaska ile ayarladık teşekkürler yinede.
 

ensiha

Bratackk <3
En iyi cevaplar
0
Kardeş Nasıl Ayarladın Yardım Edebilirsen Memnun Kalırım Ama Kullanmamı İstemiyorsan Sen Bilirsin Msj Atarsan Sevinirim
 
Üst