Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Zamiana expa na gold nugget


In-ferN-O

Rekomendowane odpowiedzi

Opublikowano
if player-arg's level is greater than 9:
enchant the player-arg's tool with efficiency 2
remove 10 from player-arg's level

Witam mógłby mi ktoś zamienić w kodzie zamieszczonym powyżej aby zamiast expa sprawdzało i zabierało gold nugget?

Opublikowano

 


if player-arg's level is greater than 9:
enchant the player-arg's tool with efficiency 2
remove 10 from player-arg's gold nugget



Programistą nie jestem ale może zadziała xD

Jeden z niewielu oficjalnych partnerów minecraft pochodzących z polski.

goPYjbL.png

Opublikowano

@In-ferN-O

Możliwe, że nie zrozumiałem, ale chyba o to chodziło:

player has 10 gold nugget:
	enchant player's tool with efficiency 2
	remove 10 gold nugget from player's inventory

9247914700071651530128.png

Opublikowano

 

@In-ferN-O

Możliwe, że nie zrozumiałem, ale chyba o to chodziło:

player has 10 gold nugget:
	enchant player's tool with efficiency 2
	remove 10 gold nugget from player's inventory

Pisze że nie masz wystarczająco levelu

Opublikowano

 

 

on rightclick on anvil:

cancel event

if player's tool is any pickaxe or any Axe or any shovel or any hoe:

open chest with 4 rows named "&c&lEnchant" to player

set {itemencahnt.%player%} to player's tool

wait 1 ticks

format slot 0 of player with 1 of Enchanted Book named "&4&lEFFICIENCY I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant efficiency 1 %player%"]

format slot 1 of player with 1 of Enchanted Book named "&4&lEFFICIENCY II" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant efficiency 2 %player%"]

format slot 2 of player with 1 of Enchanted Book named "&4&lEFFICIENCY III" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant efficiency 3 %player%"]

format slot 3 of player with 1 of Enchanted Book named "&4&lEFFICIENCY IV" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant efficiency 4 %player%"]

format slot 4 of player with 1 of Enchanted Book named "&4&lEFFICIENCY V" with lore " &8» &eKoszt: &a35 lvl" to close then run [execute console command "/ienchant efficiency 5 %player%"]

format slot 9 of player with 1 of Enchanted Book named "&4&lUNBREAKING I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant unbreaking 1 %player%"]

format slot 10 of player with 1 of Enchanted Book named "&4&lUNBREAKING II" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant unbreaking 2 %player%"]

format slot 11 of player with 1 of Enchanted Book named "&4&lUNBREAKING III" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant unbreaking 3 %player%"]

format slot 18 of player with 1 of Enchanted Book named "&4&lFORTUNE I" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant fortune 1 %player%"]

format slot 19 of player with 1 of Enchanted Book named "&4&lFORTUNE II" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant fortune 2 %player%"]

format slot 20 of player with 1 of Enchanted Book named "&4&lFORTUNE III" with lore " &8» &eKoszt: &a45 lvl" to close then run [execute console command "/ienchant fortune 3 %player%"]

format slot 27 of player with 1 of Enchanted Book named "&4&lSILK TOUCH I" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant silktouch 1 %player%"]

stop

if player's tool is any sword:

set {itemencahnt.%player%} to player's tool

open chest with 5 rows named "&c&lEnchant" to player

wait 1 ticks

format slot 0 of player with 1 of Enchanted Book named "&4&lSHARPNESS I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant sharpness 1 %player%"]

format slot 1 of player with 1 of Enchanted Book named "&4&lSHARPNESS II" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant sharpness 2 %player%"]

format slot 2 of player with 1 of Enchanted Book named "&4&lSHARPNESS III" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant sharpness 3 %player%"]

format slot 3 of player with 1 of Enchanted Book named "&4&lSHARPNESS IV" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant sharpness 4 %player%"]

format slot 4 of player with 1 of Enchanted Book named "&4&lSHARPNESS V" with lore " &8» &eKoszt: &a35 lvl" to close then run [execute console command "/ienchant sharpness 5 %player%"]

format slot 9 of player with 1 of Enchanted Book named "&4&lUNBREAKING I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant unbreaking 1 %player%"]

format slot 10 of player with 1 of Enchanted Book named "&4&lUNBREAKING II" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant unbreaking 2 %player%"]

format slot 11 of player with 1 of Enchanted Book named "&4&lUNBREAKING III" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant unbreaking 3 %player%"]

format slot 27 of player with 1 of Enchanted Book named "&4&lFIRE ASPECT I" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant fireaspect 1 %player%"]

format slot 28 of player with 1 of Enchanted Book named "&4&lFIRE ASPECT II" with lore " &8» &eKoszt: &a40 lvl" to close then run [execute console command "/ienchant fireaspect 2 %player%"]

format slot 18 of player with 1 of Enchanted Book named "&4&lLOOTING I" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant looting 1 %player%"]

format slot 19 of player with 1 of Enchanted Book named "&4&lLOOTING II" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant looting 2 %player%"]

format slot 20 of player with 1 of Enchanted Book named "&4&lLOOTING III" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant looting 3 %player%"]

format slot 36 of player with 1 of Enchanted Book named "&4&lKNOCKBACK 1" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant knock 1 %player%"]

format slot 37 of player with 1 of Enchanted Book named "&4&lKNOCKBACK 2" with lore " &8» &eKoszt: &a50 lvl" to close then run [execute console command "/ienchant knock 2 %player%"]

stop

if player's tool is any helmet or any chestplate or any leggings:

set {itemencahnt.%player%} to player's tool

open chest with 4 rows named "&c&lEnchant" to player

wait 1 ticks

format slot 0 of player with 1 of Enchanted Book named "&4&lPROTECTION I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant protection 1 %player%"]

format slot 1 of player with 1 of Enchanted Book named "&4&lPROTECTION II" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant protection 2 %player%"]

format slot 2 of player with 1 of Enchanted Book named "&4&lPROTECTION III" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant protection 3 %player%"]

format slot 3 of player with 1 of Enchanted Book named "&4&lPROTECTION IV" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant protection 4 %player%"]

format slot 9 of player with 1 of Enchanted Book named "&4&lUNBREAKING I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant unbreaking 1 %player%"]

format slot 10 of player with 1 of Enchanted Book named "&4&lUNBREAKING II" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant unbreaking 2 %player%"]

format slot 11 of player with 1 of Enchanted Book named "&4&lUNBREAKING III" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant unbreaking 3 %player%"]

stop

if player's tool is any boots:

set {itemencahnt.%player%} to player's tool

open chest with 4 rows named "&c&lEnchant" to player

wait 1 ticks

format slot 0 of player with 1 of Enchanted Book named "&4&lPROTECTION I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant protection 1 %player%"]

format slot 1 of player with 1 of Enchanted Book named "&4&lPROTECTION II" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant protection 2 %player%"]

format slot 2 of player with 1 of Enchanted Book named "&4&lPROTECTION III" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant protection 3 %player%"]

format slot 3 of player with 1 of Enchanted Book named "&4&lPROTECTION IV" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant protection 4 %player%"]

format slot 18 of player with 1 of Enchanted Book named "&4&lUNBREAKING I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant unbreaking 1 %player%"]

format slot 19 of player with 1 of Enchanted Book named "&4&lUNBREAKING II" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant unbreaking 2 %player%"]

format slot 20 of player with 1 of Enchanted Book named "&4&lUNBREAKING III" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant unbreaking 3 %player%"]

format slot 9 of player with 1 of Enchanted Book named "&4&lFEATHER FALLING I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant featherfalling 1 %player%"]

format slot 10 of player with 1 of Enchanted Book named "&4&lFEATHER FALLING II" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant featherfalling 2 %player%"]

format slot 11 of player with 1 of Enchanted Book named "&4&lFEATHER FALLING III" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "/ienchant featherfalling 3 %player%"]

format slot 12 of player with 1 of Enchanted Book named "&4&lFEATHER FALLING IV" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant featherfalling 4 %player%"]

stop

if player's tool is bow:

set {itemencahnt.%player%} to player's tool

open chest with 4 rows named "&c&lEnchant" to player

wait 1 ticks

format slot 0 of player with 1 of Enchanted Book named "&4&lPOWER I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant power 1 %player%"]

format slot 1 of player with 1 of Enchanted Book named "&4&lPOWER II" with lore " &8» &eKoszt: &a10 lvl" to close then run [execute console command "/ienchant power 2 %player%"]

format slot 2 of player with 1 of Enchanted Book named "&4&lPOWER III" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant power 3 %player%"]

format slot 3 of player with 1 of Enchanted Book named "&4&lPOWER IV" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant power 4 %player%"]

format slot 4 of player with 1 of Enchanted Book named "&4&lPOWER V" with lore " &8» &eKoszt: &a35 lvl" to close then run [execute console command "/ienchant power 5 %player%"]

format slot 9 of player with 1 of Enchanted Book named "&4&lUNBREAKING I" with lore " &8» &eKoszt: &a5 lvl" to close then run [execute console command "/ienchant unbreaking 1 %player%"]

format slot 10 of player with 1 of Enchanted Book named "&4&lUNBREAKING II" with lore " &8» &eKoszt: &a15 lvl" to close then run [execute console command "/ienchant unbreaking 2 %player%"]

format slot 11 of player with 1 of Enchanted Book named "&4&lUNBREAKING III" with lore " &8» &eKoszt: &a25 lvl" to close then run [execute console command "/ienchant unbreaking 3 %player%"]

format slot 18 of player with 1 of Enchanted Book named "&4&lINFINITY I" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant infinity 1 %player%"]

format slot 27 of player with 1 of Enchanted Book named "&4&lFLAME I" with lore " &8» &eKoszt: &a30 lvl" to close then run [execute console command "/ienchant flame 1 %player%"]

stop

else:

send "&4BLAD: &cKliknij lewym przyciskiem myszy na enchant przedmiotem ktory chcesz enchantowac." to player

 

command /ienchant [] [] []:

permission: kithc.cmd.ienchant

trigger:

if player-arg's tool is not {itemencahnt.%player-arg%}:

send "&cBLAD: &4zly przedmiot wejdz do enchantu jeszcze raz nie zmieniajac przedmiotu." to player-arg

stop

if player-arg's tool is {itemencahnt.%player-arg%}:

if arg-1 is "efficiency":

if arg-2 is "1":

if arg-3 is set:

if player-arg amount of gold nugget in player's inventory is greater than 5:

enchant the player-arg's tool with efficiency 1

remove 5 gold nugget from player's inventory

send "&aPomyslnie dodano enchant." to player-arg

stop

if arg-2 is "2":

if arg-3 is set:

player has 10 gold nugget:

enchant player's tool with efficiency 2

remove 10 gold nugget from player's inventor

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "3":

if arg-3 is set:

if player-arg's level is greater than 14:

enchant the player-arg's tool with efficiency 3

remove 15 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "4":

if arg-3 is set:

if player-arg's level is greater than 24:

enchant the player-arg's tool with efficiency 4

remove 25 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "5":

if arg-3 is set:

if player-arg's level is greater than 34:

enchant the player-arg's tool with efficiency 5

remove 35 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-1 is "unbreaking":

if arg-2 is "1":

if arg-3 is set:

if player-arg's level is greater than 4:

enchant the player-arg's tool with unbreaking 1

remove 5 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "2":

if arg-3 is set:

if player-arg's level is greater than 14:

enchant the player-arg's tool with unbreaking 2

remove 15 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "3":

if arg-3 is set:

if player-arg's level is greater than 24:

enchant the player-arg's tool with unbreaking 3

remove 25 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-1 is "fortune":

if arg-2 is "1":

if arg-3 is set:

if player-arg's level is greater than 14:

if player-arg's tool is pickaxe of silk touch 1:

send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg

stop

if player-arg's tool is shovel of silk touch 1:

send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg

stop

if player-arg's tool is hoe of silk touch 1:

send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg

stop

if player-arg's tool is axe of silk touch 1:

send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg

stop

else:

enchant the player-arg's tool with fortune 1

remove 15 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "2":

if arg-3 is set:

if player-arg's level is greater than 29:

if player-arg's tool is pickaxe of silk touch 1:

send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg

stop

if player-arg's tool is shovel of silk touch 1:

send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg

stop

if player-arg's tool is hoe of silk touch 1:

send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg

stop

if player-arg's tool is axe of silk touch 1:

send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg

stop

else:

enchant the player-arg's tool with fortune 2

remove 30 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "3":

if arg-3 is set:

if player-arg's level is greater than 44:

if player-arg's tool is pickaxe of silk touch 1:

send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg

stop

if player-arg's tool is shovel of silk touch 1:

send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg

stop

if player-arg's tool is hoe of silk touch 1:

send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg

stop

if player-arg's tool is axe of silk touch 1:

send "&cBLAD: &4nie mozesz dodac fortuny do przedmiotu z silk touch." to player-arg

stop

else:

enchant the player-arg's tool with fortune 3

remove 45 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-1 is "silktouch":

if arg-2 is "1":

if arg-3 is set:

if player-arg's level is greater than 29:

if player-arg's tool is pickaxe of fortune 1:

send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg

stop

if player-arg's tool is shovel of fortune 1:

send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg

stop

if player-arg's tool is hoe of fortune 1:

send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg

stop

if player-arg's tool is axe of fortune 1:

send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg

stop

if player-arg's tool is pickaxe of fortune 2:

send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg

stop

if player-arg's tool is shovel of fortune 2:

send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg

stop

if player-arg's tool is hoe of fortune 2:

send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg

stop

if player-arg's tool is axe of fortune 2:

send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg

stop

if player-arg's tool is pickaxe of fortune 3:

send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg

stop

if player-arg's tool is shovel of fortune 3:

send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg

stop

if player-arg's tool is hoe of fortune 3:

send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg

stop

if player-arg's tool is axe of fortune 3:

send "&cBLAD: &4nie mozesz dodac silk touch do przedmiotu z foruna." to player-arg

stop

else:

enchant the player-arg's tool with silk touch 1

remove 30 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-1 is "sharpness":

if arg-2 is "1":

if arg-3 is set:

if player-arg's level is greater than 4:

enchant the player-arg's tool with sharpness 1

remove 5 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "2":

if arg-3 is set:

if player-arg's level is greater than 9:

enchant the player-arg's tool with sharpness 2

remove 10 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "3":

if arg-3 is set:

if player-arg's level is greater than 14:

enchant the player-arg's tool with sharpness 3

remove 15 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "4":

if arg-3 is set:

if player-arg's level is greater than 24:

enchant the player-arg's tool with sharpness 4

remove 25 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "5":

if arg-3 is set:

if player-arg's level is greater than 34:

enchant the player-arg's tool with sharpness 5

remove 35 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-1 is "fireaspect":

if arg-2 is "1":

if arg-3 is set:

if player-arg's level is greater than 19:

enchant the player-arg's tool with fire aspect 1

remove 20 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "2":

if arg-3 is set:

if player-arg's level is greater than 39:

enchant the player-arg's tool with fire aspect 2

remove 40 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-1 is "looting":

if arg-2 is "1":

if arg-3 is set:

if player-arg's level is greater than 9:

enchant the player-arg's tool with looting 1

remove 10 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "2":

if arg-3 is set:

if player-arg's level is greater than 19:

enchant the player-arg's tool with looting 2

remove 20 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "3":

if arg-3 is set:

if player-arg's level is greater than 29:

enchant the player-arg's tool with looting 3

remove 30 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-1 is "protection":

if arg-2 is "1":

if arg-3 is set:

if player-arg's level is greater than 4:

enchant the player-arg's tool with protection 1

remove 5 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "2":

if arg-3 is set:

if player-arg's level is greater than 9:

enchant the player-arg's tool with protection 2

remove 10 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "3":

if arg-3 is set:

if player-arg's level is greater than 19:

enchant the player-arg's tool with protection 3

remove 20 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "4":

if arg-3 is set:

if player-arg's level is greater than 29:

enchant the player-arg's tool with protection 4

remove 30 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-1 is "featherfalling":

if arg-2 is "1":

if arg-3 is set:

if player-arg's level is greater than 4:

enchant the player-arg's tool with feather falling 1

remove 5 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "2":

if arg-3 is set:

if player-arg's level is greater than 9:

enchant the player-arg's tool with feather falling 2

remove 10 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "3":

if arg-3 is set:

if player-arg's level is greater than 19:

enchant the player-arg's tool with feather falling 3

remove 20 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "4":

if arg-3 is set:

if player-arg's level is greater than 29:

enchant the player-arg's tool with feather falling 4

remove 30 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-1 is "power":

if arg-2 is "1":

if arg-3 is set:

if player-arg's level is greater than 4:

enchant the player-arg's tool with power 1

remove 5 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "2":

if arg-3 is set:

if player-arg's level is greater than 9:

enchant the player-arg's tool with power 2

remove 10 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "3":

if arg-3 is set:

if player-arg's level is greater than 14:

enchant the player-arg's tool with power 3

remove 15 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "4":

if arg-3 is set:

if player-arg's level is greater than 24:

enchant the player-arg's tool with power 4

remove 25 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "5":

if arg-3 is set:

if player-arg's level is greater than 34:

enchant the player-arg's tool with power 5

remove 35 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-1 is "infinity":

if arg-2 is "1":

if arg-3 is set:

if player-arg's level is greater than 29:

enchant the player-arg's tool with infinity 1

remove 30 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-1 is "flame":

if arg-2 is "1":

if arg-3 is set:

if player-arg's level is greater than 29:

enchant the player-arg's tool with flame 1

remove 30 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-1 is "knock":

if arg-2 is "1":

if arg-3 is set:

if player-arg's level is greater than 24:

enchant the player-arg's tool with knockback 1

remove 25 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

if arg-2 is "2":

if arg-3 is set:

if player-arg's level is greater than 49:

enchant the player-arg's tool with knockback 2

remove 50 from player-arg's level

send "&aPomyslnie dodano enchant." to player-arg

stop

else:

send "&cBLAD: &4nie posiadasz wystarczajacego lvl." to player-arg

stop

 

@In-ferN-O

Podaj cały skrypt, jak nie chcesz publicznie to możesz na PW.

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...