Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #function ADD_ITEM(slot: integer, it: itemtype, itn: string, buy: integer, sell: integer):
- # ADD_ITEM(10 , dirt , "Dirt Block", 20 , 4 )
- # make gui slot {_slot} with {_it} named "&b&l%{_itn}%" with lore " &b&l*&7 Buy Price: &b$%{_buy}%" and " &b&l*&7 Sell Price: &b$%{_sell}%" and "" and "&b&l[!]&b Click for Buy & Sell Options":
- # ITEM(player, {_it}, {_buy}, {_sell}, {_itn})
- function BUILDING_BLOCKS(p: player, page: integer):
- create a gui with virtual chest with 6 rows named "Shop > Building Blocks":
- make gui slot ((integers between 0 and 8) and (integers between 45 and 53)) with black stained glass pane named " "
- make gui slot 9 and 18 and 27 and 36 and 17 and 26 and 35 and 44 with light blue stained glass pane named " "
- make gui slot 49 with barrier named "&b&lBack" with lore "&b&l*&7 Return to Categories":
- MAIN_SHOP(player)
- set {ITEM_LORE} to "%nl%&b&l[!]&b Click for Buy & Sell Options"
- if {_page} is 1:
- ADD_ITEM(10, dirt, "Dirt Block", 20, 4) #<<<<<<<<<<<< HERE WILL PARSE THE ERROR
- #LINE BELOW IS THE FULL FORM WITHOUT FUNCTIONS
- make gui slot 10 with dirt named "&b&lDirt Block" with lore " &b&l*&7 Buy Price: &b$20" and " &b&l*&7 Sell Price: &b$4" and {ITEM_LORE}:
- ITEM(player, dirt, 20, 4, "Dirt Block")
- make gui slot 11 with rooted dirt named "&b&lRooted Dirt Block" with lore " &b&l*&7 Buy Price: &b$20" and " &b&l*&7 Sell Price: &b$4" and {ITEM_LORE}:
- ITEM(player, rooted dirt, 20, 4, "Rooted Dirt Block")
- make gui slot 12 with coarse dirt named "&b&lCoarse Dirt Block" with lore " &b&l*&7 Buy Price: &b$20" and " &b&l*&7 Sell Price: &b$4" and {ITEM_LORE}:
- ITEM(player, coarse dirt, 20, 4, "Coarse Dirt Block")
- make gui slot 13 with grass block named "&b&lGrass Block" with lore " &b&l*&7 Buy Price: &b$50" and " &b&l*&7 Sell Price: &b$10" and {ITEM_LORE}:
- ITEM(player, grass block, 50, 10, "Grass Block")
- make gui slot 14 with podzol named "&b&lPodzol Block" with lore " &b&l*&7 Buy Price: &b$50" and " &b&l*&7 Sell Price: &b$10" and {ITEM_LORE}:
- ITEM(player, podzol, 50, 10, "Podzol Block")
- make gui slot 15 with mycelium named "&b&lMycelium Block" with lore " &b&l*&7 Buy Price: &b$50" and " &b&l*&7 Sell Price: &b$10" and {ITEM_LORE}:
- ITEM(player, mycelium, 50, 10, "Mycelium Block")
- make gui slot 16 with warped nylium named "&b&lWarped Nylium" with lore " &b&l*&7 Buy Price: &b$60" and " &b&l*&7 Sell Price: &b$15" and {ITEM_LORE}:
- ITEM(player, warped nylium, 60, 15, "Warped Nylium")
- make gui slot 19 with crimson nylium named "&b&lCrimson Nylium" with lore " &b&l*&7 Buy Price &b$60" and " &b&l*&7 Sell Price: &b$15" and {ITEM_LORE}:
- ITEM(player, warped nylium, 60, 15, "Warped Nylium")
- make gui slot 20 with cobblestone named "&b&lCobblestone Block" with lore " &b&l*&7 Buy Price &b$10" and " &b&l*&7 Sell Price: &b$2" and {ITEM_LORE}:
- ITEM(player, cobblestone, 10, 2, "Cobblestone Block")
- make gui slot 21 with stone named "&b&lStone Block" with lore " &b&l*&7 Buy Price &b$50" and " &b&l*&7 Sell Price: &b$10" and {ITEM_LORE}:
- ITEM(player, stone, 50, 10, "Stone Block")
- make gui slot 22 with gravel named "&b&lGravel Block" with lore " &b&l*&7 Buy Price &b$20" and " &b&l*&7 Sell Price: &b$4" and {ITEM_LORE}:
- ITEM(player, gravel, 20, 4, "Gravel Block")
- make gui slot 23 with andesite named "&b&lRaw Andesite" with lore " &b&l*&7 Buy Price &b$50" and " &b&l*&7 Sell Price: &b$10" and {ITEM_LORE}:
- ITEM(player, andesite, 50, 10, "Raw Andesite")
- make gui slot 50 with arrow named "&b&lNext Page" with lore "&b&l*&7 Go To Page 2":
- BUILDING_BLOCKS(player, 2)
- if {_page} is 2:
- make gui slot 11 with grass block named "2!"
- make gui slot 48 with arrow named "&b&lPrevious Page" with lore "&b&l*&7 Back To Page 1":
- BUILDING_BLOCKS(player, 1)
- open the last gui for {_P}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement