Skocz do zawartości
  • 0

Pandora się nie kończy


Pytanie

Cześć mam problem, pisze skrypt na pandore wszystko jest ok, w skripcie nie wywala problemow.  Lecz gdy gracz dostaje pandore ona sie nie konczy

kod 

Spoiler

options:
    tag: &7[&5Pandora&7]
    przedmioty: tnt or beacon or anvil or diamond block or melon or sign
        
command /pdrop:        
    trigger:
        open chest with 3 rows named "&4Drop z pandory" to player
        wait 3 tick
        format slot 0 of player with 1 of tnt named "&4&lTNT" with lore "" to close
        format slot 1 of player with 1 of beacon named "&4&lBeacon" with lore "" to close
        format slot 2 of player with 1 of anvil named "&4&lKowadlo" with lore "" to close
        format slot 3 of player with 1 of diamond block named "&4&lBlok diamentu" with lore "" to close
        format slot 4 of player with 1 of melon named "&4&lMelon" with lore "" to close
        format slot 5 of player with 1 of sign named "&4&lTabliczka" with lore "" to close

command /pandora:
    trigger:
        if player has 576 cobblestone:
            remove 576 cobblestone from player
            send "&7Otrzymales &5pandore"
            execute console command "/give %player% dragon_egg 1 name:&5Pandora"
            stop
            
        if player don't have 576 cobblestone:
        send "&7Nie posiadasz 9 stackow cobbla"
        stop
        
on right click with dragon egg:
    if name of player's tool is "&5Pandora":
    cancel event
    give a {@przedmioty} to player
    send "&7[&5Pandora&7] &6Wylosowales przedmiot" to player
    wait 1 tick
    remove 1 Dragon Egg named "&5Pandora" from player        

 

Edytowane przez PoweredDragon
Odnośnik do komentarza
https://skript.pl/temat/19687-pandora-si%C4%99-nie-ko%C5%84czy/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
14 minut temu, Sobkyy napisał:

Cześć mam problem, pisze skrypt na pandore wszystko jest ok, w skripcie nie wywala problemow.  Lecz gdy gracz dostaje pandore ona sie nie konczy

kod 

  Ukryj zawartość

options:
    tag: &7[&5Pandora&7]
    przedmioty: tnt or beacon or anvil or diamond block or melon or sign
        
command /pdrop:        
    trigger:
        open chest with 3 rows named "&4Drop z pandory" to player
        wait 3 tick
        format slot 0 of player with 1 of tnt named "&4&lTNT" with lore "" to close
        format slot 1 of player with 1 of beacon named "&4&lBeacon" with lore "" to close
        format slot 2 of player with 1 of anvil named "&4&lKowadlo" with lore "" to close
        format slot 3 of player with 1 of diamond block named "&4&lBlok diamentu" with lore "" to close
        format slot 4 of player with 1 of melon named "&4&lMelon" with lore "" to close
        format slot 5 of player with 1 of sign named "&4&lTabliczka" with lore "" to close

command /pandora:
    trigger:
        if player has 576 cobblestone:
            remove 576 cobblestone from player
            send "&7Otrzymales &5pandore"
            execute console command "/give %player% dragon_egg 1 name:&5Pandora"
            stop
            
        if player don't have 576 cobblestone:
        send "&7Nie posiadasz 9 stackow cobbla"
        stop
        
on right click with dragon egg:
    if name of player's tool is "&5Pandora":
    cancel event
    give a {@przedmioty} to player
    send "&7[&5Pandora&7] &6Wylosowales przedmiot" to player
    wait 1 tick
    remove 1 Dragon Egg named "&5Pandora" from player        

 

nie dałeś tabów przed cancel event może to przez to ale nie jestem pewien tak na przyszłość wstawiaj to na code.skript.pl

 

Odnośnik do komentarza
https://skript.pl/temat/19687-pandora-si%C4%99-nie-ko%C5%84czy/#findComment-133780
Udostępnij na innych stronach

  • 0
2 minuty temu, sworip napisał:

nie dałeś tabów przed cancel event może to przez to ale nie jestem pewien tak na przyszłość wstawiaj to na code.skript.pl

 

Dziękuje :) Prosty błąd ale działa. Na przyszłość zamapiętam gdzie wstawiać. :)

Odnośnik do komentarza
https://skript.pl/temat/19687-pandora-si%C4%99-nie-ko%C5%84czy/#findComment-133783
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...