JellyMC
Play.JellyMC.Xyz
- Katılım
- 24 Mayıs 2019
- Mesajlar
- 0
- Elmaslar
- 11
- Puan
- 0
- Yaş
- 25
- Minecraft
- Emert1484
Discord:
Emert1484#8746
Merhaba MC-TR üyeleri, çok önceden kendi sunucum için kodladığım referans sistemini sizlerle paylaşmak istiyorum. Çok uzatmadan sistemi anlatayım. /jelly <oyuncuAdı> komutunu kullandığımızda oyuncu adı yerine yazdığımız kişiye +1 ref puanı vermiş oluruz. Peki ref puanı ne kazandıracak? 10 ref puanına ulaşan oyuncular istediği hediyeyi /JellyGet komutu ile alabilecekler.
Ne yazık ki fotoraflarını çekmemişim. Çekebilirsem eklerim.
: KOMUTLAR :
/Jelly <OyuncuAdı> = Yazdığınız oyuncuya ref puanı verirsiniz.
/JellyGet = Ref puanınız 10 olunca hediyenizi alabilirsiniz.
/JellyA <ekle-sil-sıfırla> <OyuncuAdı>= Deneme için yapılmış komuttur. Sadece adminler kullanabilir.
Kod:
options:
p: &bJelly&aMC &8»
variables:
{ref::%player%::kayıt} = 0
{ref::%player%} = 0
command /jelly [<player>]:
trigger:
if {kullan.%player%} is false:
if arg-1 is set:
set {kullan.%player%} to true
add 1 to {ref::%arg-1%::kayıt}
send "{@p} &d%arg-1% &eadlı oyuncuya +1 ref puanı verdiniz."
else:
send "{@p} &cBir oyuncu ismi yazman gerek&7."
else:
send "{@p} &cZaten ref kullanmışsın&7."
command /jellyget:
trigger:
if {ref::%player%} is 0:
if {ref::%player%::kayıt} is 10:
open virtual chest with size 1 named "&2&lJelly Hediye" to player
create a gui slot 2 of player with grass named "&a&lAda Hediyesi" with lore "||&864 Adet Çimen" to close then run function da(player)
create a gui slot 4 of player with beacon named "&d&lİkisi bi'arada Hediyesi" with lore "||&832 Adet Çimen ||&816 Adet Elmas Blok" to close then run function de(player)
create a gui slot 6 of player with diamond block named "&b&lZengin Hediyesi" with lore "||&832 Adet Elmas Blok" to close then run function du(player)
else:
send "{@p} &cRef puanınız 10 olmadan hediyenizi alamazsınız&7. &eRef Puanın:&b %{ref::%player%::kayıt}%"
else:
send "{@p} &cZaten ref hediyeni almışşsın."
command /jellya [<text>] [<player>]:
permission: op
trigger:
if arg-1 is "ekle":
set {ref::%arg-2%::kayıt} to 10
send "{@p} &aBaşarılı"
if arg-1 is "sil":
set {ref::%arg-2%::kayıt} to 0
send "{@p} &aBaşarılı"
if arg-1 is "sıfırla":
set {ref::%arg-2%} to 0
send "{@p} &aBaşarılı"
if arg-1 is "sıf":
set {kullan.%player%} to false
function da(p: player):
set {ref::%{_p}%} to 1
execute console command "give %{_p}% 2 64"
send "{@p} &aAlındı &c! &e 64X Çimen" to {_p}
function de(p: player):
set {ref::%{_p}%} to 1
execute console command "give %{_p}% 57 16"
execute console command "give %{_p}% 2 32"
send "{@p} &aAlındı &c! &e 16X Diamond Blok &8- &e32X Çimen" to {_p}
function du(p: player):
set {ref::%{_p}%} to 1
execute console command "give %{_p}% 57 32"
send "{@p} &aAlındı &c! &e 32X Diamond Blok" to {_p}