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
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"]
Pytanie
vkvbuss 22
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
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