command /drop:
aliases: stone, kamien
trigger:
open chest with 1 rows named "Menu dropu" to player
wait 1 tick
if player's tool is pickaxe of fortune 9:
format slot 0 of player with 1 of coal ore named "&7Wegiel" with lore "&7» &6Szansa: &7{@wegiel}%%||&7» &6Drop: &7%{dwegiel.%player%}%||&7» &6Kilof: &7Fortune IX||&7» &6Bonus: &7{@upgrade9}%%" to run [execute player command "dwegiel"]
format slot 1 of player with 1 of iron ore named "&7Zelazo" with lore "&7» &6Szansa: &7{@zelazo}%%||&7» &6Drop: &7%{dzelazo.%player%}%||&7» &6Kilof: &7Fortune IX||&7» &6Bonus: &7{@upgrade9}%%" to run [execute player command "dzelazo"]
format slot 2 of player with 1 of gold ore named "&7Zloto" with lore "&7» &6Szansa: &7{@zloto}%%||&7» &6Drop: &7%{dzloto.%player%}%||&7» &6Kilof: &7Fortune IX||&7» &6Bonus: &7{@upgrade9}%%" to run [execute player command "dzloto"]
format slot 3 of player with 1 of redstone ore off named "&7Redstone" with lore "&7» &6Szansa: &7{@redstone}%%||&7» &6Drop: &7%{dredstone.%player%}%||&7» &6Kilof: &7Fortune IX||&7» &6Bonus: &7{@upgrade9}%%" to run [execute player command "dredstone"]
format slot 4 of player with 1 of diamond ore named "&7Diament" with lore "&7» &6Szansa: &7{@diament}%%||&7» &6Drop: &7%{ddiament.%player%}%||&7» &6Kilof: &7Fortune IX||&7» &6Bonus: &7{@upgrade9}%%" to run [execute player command "ddiament"]
format slot 8 of player with 1 of cobble_stone named "&7Cobble" with lore "&7» &6Drop: &7%{dcobble.%player%}%" to run [execute player command "dcobble"]
else:
format slot 0 of player with 1 of coal ore to run [execute player command "dwegiel"]
Chodzi o to że graczowi który trzyma kilof fortune 9 ukazuję się to gui. Problemem jest to że graczowi bez jakiegokolwiek itema również ma się pokazywać to gui lecz z innymi wartościami i przez to jest "else".
Problem polega na tym że graczowi z fortune 9 ukazują się rzeczy z else a nie tego ifa.. Jak usunę else to wszystko działa ok
Pytanie
DeLajt 15
command /drop: aliases: stone, kamien trigger: open chest with 1 rows named "Menu dropu" to player wait 1 tick if player's tool is pickaxe of fortune 9: format slot 0 of player with 1 of coal ore named "&7Wegiel" with lore "&7» &6Szansa: &7{@wegiel}%%||&7» &6Drop: &7%{dwegiel.%player%}%||&7» &6Kilof: &7Fortune IX||&7» &6Bonus: &7{@upgrade9}%%" to run [execute player command "dwegiel"] format slot 1 of player with 1 of iron ore named "&7Zelazo" with lore "&7» &6Szansa: &7{@zelazo}%%||&7» &6Drop: &7%{dzelazo.%player%}%||&7» &6Kilof: &7Fortune IX||&7» &6Bonus: &7{@upgrade9}%%" to run [execute player command "dzelazo"] format slot 2 of player with 1 of gold ore named "&7Zloto" with lore "&7» &6Szansa: &7{@zloto}%%||&7» &6Drop: &7%{dzloto.%player%}%||&7» &6Kilof: &7Fortune IX||&7» &6Bonus: &7{@upgrade9}%%" to run [execute player command "dzloto"] format slot 3 of player with 1 of redstone ore off named "&7Redstone" with lore "&7» &6Szansa: &7{@redstone}%%||&7» &6Drop: &7%{dredstone.%player%}%||&7» &6Kilof: &7Fortune IX||&7» &6Bonus: &7{@upgrade9}%%" to run [execute player command "dredstone"] format slot 4 of player with 1 of diamond ore named "&7Diament" with lore "&7» &6Szansa: &7{@diament}%%||&7» &6Drop: &7%{ddiament.%player%}%||&7» &6Kilof: &7Fortune IX||&7» &6Bonus: &7{@upgrade9}%%" to run [execute player command "ddiament"] format slot 8 of player with 1 of cobble_stone named "&7Cobble" with lore "&7» &6Drop: &7%{dcobble.%player%}%" to run [execute player command "dcobble"] else: format slot 0 of player with 1 of coal ore to run [execute player command "dwegiel"]
Chodzi o to że graczowi który trzyma kilof fortune 9 ukazuję się to gui. Problemem jest to że graczowi bez jakiegokolwiek itema również ma się pokazywać to gui lecz z innymi wartościami i przez to jest "else".
Problem polega na tym że graczowi z fortune 9 ukazują się rzeczy z else a nie tego ifa.. Jak usunę else to wszystko działa ok
Edytowane przez DeLajtOdnośnik do komentarza
Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi