Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Functies:
- # baanGui, baanCheckAdd
- function baanGui(p: player, page: string):
- if {_page} is "1":
- open chest with 6 rows named "&3&lBaan" to {_p}
- if {mn::baan::%{_p}%::houthakker} is true:
- format slot 10 of {_p} with a wooden axe named "&2Houthakker" with lore "&aGekozen" to be unstealable
- else:
- make a gui slot 10 of {_p} with a wooden axe named "&2Houthakker" with lore "&aUnlocked" to run function baanGui({_p}, "houthakker")
- if {mn::baan::%{_p}%::miner} is true:
- format slot 12 of {_p} with a wooden pickaxe named "&2Miner" with lore "&aGekozen" to be unstealable
- else:
- make a gui slot 12 of {_p} with a wooden pickaxe named "&2Miner" with lore "&aUnlocked" to run function baanGui({_p}, "miner")
- if {mn::baan::%{_p}%::bouwer} is true:
- format slot 14 of {_p} with brick block named "&2Bouwer" with lore "&aGekozen" to be unstealable
- else:
- make gui slot 14 of {_p} with brick block named "&2Bouwer" with lore "&aUnlocked" to run function baanGui({_p}, "bouwer")
- if {mn::baan::%{_p}%::farmer} is true:
- format slot 16 of {_p} with a wooden hoe named "&2Farmer" with lore "&aGekozen" to be unstealable
- else:
- make gui slot 16 of {_p} with a wooden hoe named "&2Farmer" with lore "&aUnlocked" to run function baanGui({_p}, "farmer")
- if {mn::baan::%{_p}%::soldaat} is true:
- format slot 29 of {_p} with a iron sword named "&2Soldaat" with lore "&aGekozen" to be unstealable
- else:
- make gui slot 29 of {_p} with a iron sword named "&2Soldaat" with lore "&aUnlocked" to run function baanGui({_p}, "soldaat")
- if {mn::baan::%{_p}%::smid} is true:
- format slot 31 of {_p} with an anvil named "&2Smid" with lore "&aGekozen" to be unstealable
- else:
- make gui slot 31 of {_p} with an anvil named "&2Smid" with lore "&aUnlocked" to run function baanGui({_p}, "smid")
- if {mn::baan::%{_p}%::enchanter} is true:
- format slot 33 of {_p} with an enchantment table named "&2Enchanter" with lore "&aGekozen" to be unstealable
- else:
- make gui slot 33 of {_p} with an enchantment table named "&2Enchanter" with lore "&aUnlocked" to run function baanGui({_p}, "Enchanter")
- format slot 49 of {_p} with a barrier named "&4Sluit het menu" to close
- if {_page} is "houthakker":
- open chest with 6 rows named "&3Houthakker" to {_p}
- if {mn::baan::%{_p}%::houthakker} is true:
- format slot 13 of {_p} with a wooden axe named "&2Houthakker" with lore "&aGekozen" to be unstealable
- else:
- make gui slot 13 of {_p} with a wooden axe named "&2Houthakker" with lore "&aUnlocked" to run function baanCheckAdd({_p}, "Enchanter")
- if {_page} is "miner":
- if {_page} is "bouwer":
- if {_page} is "farmer":
- if {_page} is "soldaat":
- if {_page} is "smid":
- if {_page} is "enchanter":
Advertisement
Add Comment
Please, Sign In to add comment