Skocz do zawartości
  • 0

zamiana enderchest na schowek do skryptu


vkvbuss

Pytanie

Cześć, mam taki skrypt na limit koxow, refili jak i pereł, tyle ,że odkłada to do enderchestu.

Umiał by ktoś go zedytować, aby odkładało je do /schowek ?

+ Stworzyć jakieś mini gui (moge podesłać bo chyba mam takowe)

za pomoc nagradzam maksymalna ilością plusików :)

on any move:


    wait 0.1 second
    if amount of enchanted golden apple in player's inventory is greater than 5:
        set {_amount} to amount of enchanted golden apple in player's inventory
        set {_amountend} to {_amount}-5
        set {_add} to "%{_amountend}% enchanted golden apple"
        add "%{_add}%" parsed as item to player's enderchest
        remove all enchanted golden apple from player's inventory
        add 5 enchanted golden apple to player's inventory
        message "&6Osiagnieto maksymalna ilosc koxow w twoim ekwipunku. Reszta w enderchescie"
    if amount of ender pearl in player's inventory is greater than 8:
        set {_amount} to amount of ender pearl in player's inventory
        set {_amountend} to {_amount}-8
        set {_add} to "%{_amountend}% ender pearl"
        add "%{_add}%" parsed as item to player's enderchest
        remove all ender pearl from player's inventory
        add 8 ender pearl to player's inventory
        message "&6Osiagnieto maksymalna ilosc perel w twoim ekwipunku. Reszta w enderchescie"
    if amount of golden apple:0 in player's inventory is greater than 16:
        set {_amount} to amount of golden apple:0 in player's inventory
        set {_amountend} to {_amount}-16
        set {_add} to "%{_amountend}% golden apple:0"
        add "%{_add}%" parsed as item to player's enderchest
        remove all golden apple:0 from player's inventory
        add 16 golden apple:0 to player's inventory
        message "&6Osiagnieto maksymalna ilosc refili w twoim ekwipunku. Reszta w enderchescie"
        stop

 

Takie gui, tego typu, tylko prosiłbym jeszcze o dodanie do okoła szkła ciemnego :D

Skopiowane z innego postu link:

command /schowek:


    trigger:
        open chest with 3 rows named "&6&lSchowek" to player
        wait 2 tick
        format slot 10 of player with 1 of golden apple:1 named "&e&lKoxy" with lore "&7Limit: &63||&7W schowku: &6%{schowek.koxy.%player%}%" to close then run [execute player command "costamtest koxy"]
        format slot 13 of player with 1 of ender pearl named "&e&LPerly" with lore "&7Limit: &66||&7W schowku: &6%{schowek.perly.%player%}%" to close then run [execute player command "costamtest koxy"]
        format slot 16 of player with 1 of golden apple:0 named "&e&lRefile" with lore "&7Limit: &612||&7W schowku: &6%{schowek.refy.%player%}%" to close then run [execute player command "costamtest refy"]

Odnośnik do komentarza
Udostępnij na innych stronach

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

To zamień sobie tamten skrypt na ten;

 

command /schowek:
    trigger:
        open chest with 3 rows named "&6&lSchowek" to player
        wait 2 tick
		loop 10 times:
			format slot (loop-number - 1) of player with black stained glass pane named "&8TLO" to be unstealable
        format slot 10 
		loop 2 times:
			format slot (10 + loop-number - 1) of player with black stained glass pane named "&8TLO" to be unstealable
        format slot 13
		loop 2 times:
			format slot (13 + loop-number - 1) of player with black stained glass pane named "&8TLO" to be unstealable
        format slot 16
		loop 11 times:
			format slot (16 + loop-number - 1) of player with black stained glass pane named "&8TLO" to be unstealable
		
on eat golden apple:1:
    if player has 4 golden apple:1:
        send "&cMasz za duzo koxow, twoje koxy zostaja odlozone do /schowek!"
		loop 25 times:
       	    if player has 4 golden apple:1:
                remove 1 golden apple:1 from player
           add 1 to {schowek.koxy.%player%}

Tam gdzie masz puste format slot (liczba) tam musisz dać ten swój kod.

Odnośnik do komentarza
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ę...