xEndlessV2
Elmas Madencisi
- En iyi cevaplar
- 0
@Rycep41 adlı arkadaşın isteği üzerine kodladığım basit bir skript,sevilirse geliştirmeye devam ederim.
Kod:
options:
p: &8[&eUHCFFA&8]
uhcmapadı: uhcffa
variables:
{uhcffada.%player%} = false
command /uhcffa [<text>]:
trigger:
if arg-1 isn't set:
if player doesn't have the permission "uhcffa.admin":
send "{@p} &9/uhcffa &8[&3gir&8,&3çık&8]"
else:
send "{@p} &9/uhcffa &8[&3gir&8,&3çık&8,&3bakım&8,&3loc1&8,&3loc2&8,&3spawnekle&8]"
if arg-1 is "gir":
if {uhcffada.%player%} is false:
set {uhcffada.%player%} to true
send "{@p} &3UHCFFA'ya girdin!"
set {_uhctp} to random element of {uhctp::*}
teleport player to {_uhctp}
set slot 0 of player's inventory to diamond sword of sharpness 3
set slot 1 of player's inventory to bow of power 3
set slot 4 of player's inventory to lava bucket
set slot 2 of player's inventory to fishing rod of unbreaking 3
set slot 3 of player's inventory to water bucket
set slot 5 of player's inventory to 3 golden apple named "&6Golden Head"
set slot 6 of player's inventory to 6 golden apple
set slot 7 of player's inventory to 64 planks:1
set slot 8 of player's inventory to diamond axe
set slot 9 of player's inventory to 64 arrow
set slot 34 of player's inventory to 64 cobblestone
set slot 30 of player's inventory to water bucket
set slot 35 of player's inventory to diamond pickaxe
set slot 31 of player's inventory to lava bucket
make player wear all diamond armour of protection 2
else:
send "{@p} &3Zaten UHCFFA oynuyorsun!"
if arg-1 is "çık":
if {uhcffada.%player%} is false:
send "{@p} &3Zaten UHCFFA oynamıyorsun!"
else:
set {uhcffada.%player%} to false
clear player's inventory
execute console command "spawn %player%"
send "{@p} &3UHCFFA'dan çıktın!"
if arg-1 is "bakım":
if player doesn't have the permission "uhcffa.admin":
send "{@p} &3Üzgünüm,yetkin buna yetmiyor."
else:
loop all players:
if {uhcffada.%loop-player%} is true:
set {uhcffada.%loop-player%} to false
clear loop-player's inventory
execute console command "spawn %loop-player%"
send "{@p} &3UHCFFA bakıma alındı" to loop-player
send "{@p} &3UHCFFA bakıma alındı." to player
if arg-1 is "loc1":
if player doesn't have the permission "uhcffa.admin":
send "{@p} &3Üzgünüm,yetkin buna yetmiyor."
else:
set {uhcffamap.loc1} to location of player
send "{@p} &3UHCFFA haritasının 1. noktası belirlendi!"
if arg-1 is "loc2":
if player doesn't have the permission "uhcffa.admin":
send "{@p} &3Üzgünüm,yetkin buna yetmiyor."
else:
set {uhcffamap.loc2} to location of player
send "{@p} &3UHCFFA haritasının 2. noktası belirlendi!"
if arg-1 is "spawnekle":
if player doesn't have the permission "uhcffa.admin":
send "{@p} &3Üzgünüm,yetkin buna yetmiyor."
else:
add location of player to {uhctp::*}
send "{@p} &3%location of player% koordinatları UHCFFA spawn bölgelerine eklendi!"
on death of player:
if {uhcffada.%victim%} is true:
if {uhcffada.%attacker%} is true:
set {_items} to player's serialized inventory
drop {_items} at attacker
clear victim's inventory
give 1 golden apple to attacker
set {_uhctp} to random element of {uhctp::*}
teleport player to {_uhctp}
set slot 0 of victim's inventory to diamond sword of sharpness 3
set slot 1 of victim's inventory to bow of power 3
set slot 4 of victim's inventory to lava bucket
set slot 2 of victim's inventory to fishing rod of unbreaking 3
set slot 3 of victim's inventory to water bucket
set slot 5 of victim's inventory to 3 golden apple named "&6Golden Head"
set slot 6 of victim's inventory to 6 golden apple
set slot 7 of victim's inventory to 64 planks:1
set slot 8 of victim's inventory to diamond axe
set slot 9 of victim's inventory to 64 arrow
set slot 34 of victim's inventory to 64 cobblestone
set slot 30 of victim's inventory to water bucket
set slot 35 of victim's inventory to diamond pickaxe
set slot 31 of victim's inventory to lava bucket
make victim wear all diamond armour of protection 2
on quit:
if {uhcffada.%player%} is true:
set {uhcffada.%player%} to false
every 10 minute:
execute console command "killall drops {@uhcmapadı}"
loop blocks within {uhcffa.loc1} to {uhcffa.loc2}:
if loop-block is lava:
set loop-block to air
if loop-block is water:
set loop-block to air
if loop-block is cobblestone:
set loop-block to air
if loop-block is planks:1:
set loop-blocks to air
if loop-block is obsidian:
set loop-blocks to air
if loop-block is stone:
set loop-blocks to air
broadcast "{@p} &3UHCFFA mapı temizlendi!"