Skocz do zawartości
  • 0

Netherite na diax


Pytanie

ktos napisze mi skrypt na kommende /kowal ktory wymienia mi netheritowy item w lapce na diax ale zeby wszystko zostalo enchanty... (tak jak na rapy.pl boxpvp kowal)

Mam takie cos ale nie dziala:
 

command /kowal:
    permission: skript.example.kowal
    trigger:
set {_i} to player's held item
replace "netherite chestplate" with "diamond chestplate" in {_i}
set {_ench} to level of protection of player's held item
set {_ench2} to level of unbreaking of player's held item

give player {_i} with "protection %{_ench}%" parsed as enchantment type and "punbreaking %{_ench2}%" parsed as enchantment type
remove player's held item from player

Odnośnik do komentarza
https://skript.pl/temat/55046-netherite-na-diax/
Udostępnij na innych stronach

Rekomendowane odpowiedzi

  • 0

no spoko dajesz _ graczowi, a gdzie zamieniasz ten item?

set {_} to player's tool

ustawiasz przeciez na taki co ma w lapie, przeczytaj sobie co chce autor osiągnąć bo chyba nie rozumiesz

skrypt na kommende /kowal ktory wymienia mi netheritowy item w lapce na diax ale zeby wszystko zostalo enchanty

Twój kod:

command /kowal:
	permission: skript.example.kowal
	trigger:
		set {_i} to player's tool #ustawiasz i na item gracza
		{_i} is any netherite armor # sprawdzasz czy i to netherite armor
		set {_} to player's tool ustawiasz _ na przedmiot gracza
		set player's tool to (item amount of player's tool - 1) of player's tool # usuwa 1 item z eq
		set {_ench::*} to enchantments of {_i} #enchanty
		loop {_ench::*}: #pętla
			enchant {_} with loop-value #dodawanie enchantow do _
		give {_} to player # daje graczowi _

Ten kod JEDYNE co zrobi to da TEN SAM item jaki trzyma w lapie, ale nie zamieni go na diamentowy, a to wlasnie chce autor osiągnąć, aby helm netheritowy zostal zamieniony na diamentowy, zeby miecz netheritowy byl diamentowy itd. 

Może nie widze, ale w którym miejscu twój kod zamienia netherite na diament?

Jeżeli chcesz sie pobawić w optymalizacje to wypróbuj 

set {_} to player's held item parsed as text
replace "netherite" with "diamond" in {_}
set {_} to {_} parsed as itemtype

Nie wiem czy zadziala, ale moze

 

Jeżeli to nie zadziała, a sam nie bedziesz miec innego pomyslu to polecam skrypt AUTORA wątku, który jedynie wytabowałem

 

Edytowane przez Fendi
Odnośnik do komentarza
https://skript.pl/temat/55046-netherite-na-diax/#findComment-333036
Udostępnij na innych stronach

  • 0
35 minut temu, xMarek_Mareczek napisał:

nazwa seta znika a tak to super jest

 

 

mordini napisz mi czy to ma zmieniać item w łapce czy ogólnie w inventory dobra nie ważne 

Edytowane przez danielo535
Odnośnik do komentarza
https://skript.pl/temat/55046-netherite-na-diax/#findComment-333045
Udostępnij na innych stronach

  • 0
13 minut temu, xMarek_Mareczek napisał:

lapce

trzymaj mordeczko 
 

Spoiler

usuneło mi nw czemu niżej daje kod

mogłem wczesniej podesłać ale zapomniało mi sie

Edytowane przez danielo535
Odnośnik do komentarza
https://skript.pl/temat/55046-netherite-na-diax/#findComment-333047
Udostępnij na innych stronach

  • 0
4 minuty temu, danielo535 napisał:

jasne chwilka bo już na tell jestem

command /kowal:
    trigger:
        if player's tool is netherite helmet: 
            loop enchantments of player's tool:
                add loop-value to {_x::*}    
            set {_n} to name of player's tool
            set {_l::*} to player's tool's lore
            set {_e} to nbt of player's tool
            remove player's tool from player's inventory
            set {_m} to diamond helmet
            enchant {_m} with {_x::*}
            give {_m} named {_n} with lore {_l::*} with nbt {_e} with all flags hidden to player
            clear {_x::*}
            stop
        if player's tool is netherite chestplate: 
            loop enchantments of player's tool:
                add loop-value to {_x::*}
            set {_n} to name of player's tool
            set {_l::*} to player's tool's lore
            set {_e} to nbt of player's tool
            remove player's tool from player's inventory
            set {_m} to diamond chestplate
            enchant {_m} with {_x::*}
            give {_m} named {_n} with lore {_l::*} with nbt {_e} with all flags hidden to player
            clear {_x::*}
            stop
        if player's tool is netherite leggings: 
            loop enchantments of player's tool:
                add loop-value to {_x::*}
            set {_n} to name of player's tool
            set {_l::*} to player's tool's lore
            set {_e} to nbt of player's tool
            remove player's tool from player's inventory
            set {_m} to diamond leggings
            enchant {_m} with {_x::*}
            give {_m} named {_n} with lore {_l::*} with nbt {_e} with all flags hidden to player
            clear {_x::*}
            stop
        if player's tool is netherite boots: 
            loop enchantments of player's tool:
                add loop-value to {_x::*}
            set {_n} to name of player's tool
            set {_l::*} to player's tool's lore
            set {_e} to nbt of player's tool
            remove player's tool from player's inventory
            set {_m} to diamond boots
            enchant {_m} with {_x::*}
            give {_m} named {_n} with lore {_l::*} with nbt {_e} with all flags hidden to player
            clear {_x::*}
            stop
        if player's tool is netherite sword: 
            loop enchantments of player's tool:
                add loop-value to {_x::*}
            set {_n} to name of player's tool
            set {_l::*} to player's tool's lore
            set {_e} to nbt of player's tool
            remove player's tool from player's inventory
            set {_m} to diamond sword
            enchant {_m} with {_x::*}
            give {_m} named {_n} with lore {_l::*} with nbt {_e} with all flags hidden to player
            clear {_x::*}
            stop
        if player's tool is netherite pickaxe: 
            loop enchantments of player's tool:
                add loop-value to {_x::*}
            set {_n} to name of player's tool
            set {_l::*} to player's tool's lore
            set {_e} to nbt of player's tool
            remove player's tool from player's inventory
            set {_m} to diamond pickaxe
            enchant {_m} with {_x::*}
            give {_m} named {_n} with lore {_l::*} with nbt {_e} with all flags hidden to player
            clear {_x::*}
            stop
        if player's tool is netherite axe: 
            loop enchantments of player's tool:
                add loop-value to {_x::*}
            set {_n} to name of player's tool
            set {_l::*} to player's tool's lore
            set {_e} to nbt of player's tool
            remove player's tool from player's inventory
            set {_m} to diamond axe
            enchant {_m} with {_x::*}
            give {_m} named {_n} with lore {_l::*} with nbt {_e} with all flags hidden to player
            clear {_x::*}
            stop
        else:
            send "&cWez przedmiot na wymiane do reki!"

prosze bardzo

Edytowane przez danielo535
Odnośnik do komentarza
https://skript.pl/temat/55046-netherite-na-diax/#findComment-333050
Udostępnij na innych stronach

  • 0

sa blady bo tera testowalem w line 8,12,20,24,32,36,44,48,56,60,68,72,80,84 .... (set {_e} to nbt of player's tool).....(give {_m} named {_n} with lore {_l::*} with nbt {_e} with all flags hidden to player) to nie dziala

 

Odnośnik do komentarza
https://skript.pl/temat/55046-netherite-na-diax/#findComment-333053
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

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