Bulundu [SKRIPT] SUMO

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

yusufking01

Odunlara Vur Vur Vur!
Katılım
22 Mart 2025
Mesajlar
37
Elmaslar
3
Puan
895
Yaş
22
Konum
İstanbul
Minecraft
ytyusufking

Discord:

ytyusufking

Minecraft sunucumda sumo etkinliği yapmak için skript verirmisiniz? sunucu sürümü 1.19.4 java 17
 
Ona yaptırdım saten
 
Merhaba birazdaha detaylı anlıtıtmısınız
 
Bir köşeye spawn point alıp diyer köşeye de 2. Oyuncunun doğcağı yeri ayarlıcam /sumobasla yazınca sumo eventi başlıcak katılacaklar /sumo join yazacak ve izleyici yerine gidecekler 2 kişi rastgele seçilip daha önceki spawnpoint gitcek ler birbirlerini düşürmeye çalışacaklar böyle devam etcek kazanan diyer kazananla vs atcak
 
Bir köşeye spawn point alıp diyer köşeye de 2. Oyuncunun doğcağı yeri ayarlıcam /sumobasla yazınca sumo eventi başlıcak katılacaklar /sumo join yazacak ve izleyici yerine gidecekler 2 kişi rastgele seçilip daha önceki spawnpoint gitcek ler birbirlerini düşürmeye çalışacaklar böyle devam etcek kazanan diyer kazananla vs atcak
JavaScript:
# ==========================
#  S U M O   E V E N T I
# ==========================

variables:
    {sumo.enabled} = false
    {sumo.waitloc} = none
    {sumo.fightloc1} = none
    {sumo.fightloc2} = none
    {sumo.players::*} =

# ----- ADMIN KOMUTLARI -----

command /sumolobiayarla:
    permission: sumo.admin
    trigger:
        set {sumo.waitloc} to location of player
        send "&a[SUMO] Lobi konumu simdiki konumuna ayarlandi."

command /sumoarena1ayarla:
    permission: sumo.admin
    trigger:
        set {sumo.fightloc1} to location of player
        send "&a[SUMO] Arena 1 konumu simdiki konumuna ayarlandi."

command /sumoarena2ayarla:
    permission: sumo.admin
    trigger:
        set {sumo.fightloc2} to location of player
        send "&a[SUMO] Arena 2 konumu simdiki konumuna ayarlandi."

command /sumobasla:
    permission: sumo.admin
    trigger:
        if {sumo.waitloc} is none or {sumo.fightloc1} is none or {sumo.fightloc2} is none:
            send "&c[SUMO] Once lobi ve arena konumlarini ayarla!"
            stop
        set {sumo.enabled} to true
        clear {sumo.players::*}
        broadcast "&a[SUMO] Etkinlik basladi! &e/sumo join &ayazarak katil!"

command /sumobitir:
    permission: sumo.admin
    trigger:
        if {sumo.enabled} is false:
            send "&c[SUMO] Zaten aktif sumo yok."
            stop
        set {sumo.enabled} to false
        clear {sumo.players::*}
        broadcast "&c[SUMO] Etkinlik bitti."

# ----- OYUNCU KOMUTU -----

command /sumo join:
    trigger:
        if {sumo.enabled} is not true:
            send "&cSu anda sumo etkinligi yok."
            stop
        if player is in {sumo.players::*}:
            send "&cZaten sumoya katildin."
            stop
        add player to {sumo.players::*}
        teleport player to {sumo.waitloc}
        send "&aSumoya katildin, macini bekle."

# ----- MAC ESLESTIRME SISTEMI -----

# Su anda dovusen oyunculari tut
variables:
    {sumo.fight::1} = none
    {sumo.fight::2} = none

every 5 seconds:
    if {sumo.enabled} is true:
        # Eger arenada aktif mac yoksa ve en az 2 kisi varsa yeni mac baslat
        if {sumo.fight::1} is none and {sumo.fight::2} is none:
            if size of {sumo.players::*} >= 2:
                set {_p1} to random element out of {sumo.players::*}
                remove {_p1} from {sumo.players::*}
                set {_p2} to random element out of {sumo.players::*}
                remove {_p2} from {sumo.players::*}
                set {sumo.fight::1} to {_p1}
                set {sumo.fight::2} to {_p2}
                teleport {_p1} to {sumo.fightloc1}
                teleport {_p2} to {sumo.fightloc2}
                send "&a[SUMO] Mac basladi! Rakibini asagı dusurmeye calis." to {_p1} and {_p2}
                broadcast "&e[SUMO] &b%{_p1}% &evs &b%{_p2}%"

        # Son 1 kisi kaldiysa otomatik bitir
        if size of {sumo.players::*} = 0 and ({sumo.fight::1} is not none or {sumo.fight::2} is not none):
            stop # mac bitmesi bekleniyor
        else if size of {sumo.players::*} = 1 and {sumo.fight::1} is none and {sumo.fight::2} is none:
            set {_winner} to {sumo.players::1}
            broadcast "&a[SUMO] Turnuvanin kazananı: &b%{_winner}%"
            # Buraya odul komutunu ekleyebilirsin:
            # execute console command "eco give %{_winner}% 1000"
            set {sumo.enabled} to false
            clear {sumo.players::*}

# ----- KAZANANI BELIRLEME (DUSEN KAYBEDER) -----

on death:
    if {sumo.enabled} is true:
        if victim is {sumo.fight::1} or victim is {sumo.fight::2}:
            if victim is {sumo.fight::1}:
                set {_winner} to {sumo.fight::2}
            else:
                set {_winner} to {sumo.fight::1}
            broadcast "&a[SUMO] Bu macin kazananı: &b%{_winner}%"
            add {_winner} to {sumo.players::*}
            set {sumo.fight::1} to none
            set {sumo.fight::2} to none

on quit:
    if {sumo.enabled} is true:
        if player is in {sumo.players::*}:
            remove player from {sumo.players::*}
        if player is {sumo.fight::1} or player is {sumo.fight::2}:
            # Oyundan cikan kaybetmis sayilsin
            if player is {sumo.fight::1}:
                set {_winner} to {sumo.fight::2}
            else:
                set {_winner} to {sumo.fight::1}
            if {_winner} is not none:
                broadcast "&a[SUMO] Rakibi oyundan cikti, kazanan: &b%{_winner}%"
                add {_winner} to {sumo.players::*}
            set {sumo.fight::1} to none
            set {sumo.fight::2} to none

# ----- KACMAYI ENGELLEME -----

# Bazi komutlari kilitle
on command:
    if {sumo.enabled} is true:
        if player is in {sumo.players::*} or player is {sumo.fight::1} or player is {sumo.fight::2}:
            if command is "spawn" or command is "home" or command is "hub":
                cancel event
                send "&cSumo etkinligindeyken bu komutu kullanamazsin."

# Bölge disina cikarsa lobiye cek
every 1 second:
    if {sumo.enabled} is true:
        loop {sumo.players::*}:
            if loop-value is online:
                set {_l} to location of loop-value
                # Bu sinirlari kendi sumo alanina gore degistir.
                if x-coordinate of {_l} is not between -50 and 50
                    or z-coordinate of {_l} is not between -50 and 50
                    or y-coordinate of {_l} is not between 60 and 120:
                    teleport loop-value to {sumo.waitloc}
                    send "&cArenadan cikamazsin, tekrar lobiye cekildin." to loop-value

Yapman gerekenler:Sunucuyu aç, istediğin lobi noktasına geçip /sumolobiayarla yaz.Arenadaki iki başlangıç bloğuna sırayla geçip /sumoarena1ayarla ve /sumoarena2ayarla yaz.Etkinliği başlatmak için /sumobasla, oyuncuların katılması için /sumo join, bitirmek için /sumobitir kullan.Sınır (X/Z/Y between -50..50 vs.) kısmını kendi sumo alanının koordinatlarına göre düzenlemeyi unutma.
 
Teşekkürler
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst