Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GuiFillForge(p: player,s: number,m: material):
- set {_times} to {_s}
- set {_slot} to 0
- loop {_times} times:
- create gui slot {_slot} of {_p} with {_m} named " " with lore " " to do nothing
- set {_slot} to {_slot}+1
- if {_m} is red stained glass pane:
- create gui slot {_s}-5 of {_p} with barrier block named "&4&lEXIT" with lore " " to run:
- close player's inventory
- on craft:
- if event-item is helmet or chestplate or leggings or boots or sword or pickaxe or axe or shovel:
- cancel event
- on click on anvil:
- if block below event-block is sea lantern:
- cancel event
- open virtual chest with size 4 named "Forge" to player
- wait 2 ticks
- GuiFillForge(player,36,red stained glass pane)
- wait 2 ticks
- GuiFillForge(player,27,black stained glass pane)
- wait 2 ticks
- create gui slot 11 of player with iron ingot named "Forge Iron Items" with lore "Click to forge iron items" to run:
- close player's inventory
- wait 2 ticks
- open virtual chest with size 5 named "Forge Iron Items" to player
- wait 2 ticks
- GuiFillForge(player,45,red stained glass pane)
- GuiFillForge(player,36,black stained glass pane)
- wait 2 ticks
- create gui slot 1 of player with iron helmet named "Helmet" with lore "Price:" to run:
- close player's inventory
- create gui slot 10 of player with iron chestplate named "Chestplate" with lore "Price" to run:
- close player's inventory
- create gui slot 19 of player with iron Leggings named "Leggings" with lore "Price" to run:
- close player's inventory
- create gui slot 28 of player with iron boots named "Boots" with lore "Price" to run:
- close player's inventory
- create gui slot 7 of player with iron sword named "Sword" with lore "Price:" to run:
- close player's inventory
- create gui slot 16 of player with iron pickaxe named "Pickaxe" with lore "Price:" to run:
- close player's inventory
- create gui slot 25 of player with iron shovel named "Shovel" with lore "Price:" to run:
- close player's inventory
- create gui slot 15 of event-player with diamond named "&c&lForge Diamond Items" with lore "Click to forge diamond items" to run:
- close player's inventory
- wait 2 ticks
- open virtual chest with size 5 named "Forge Diamond Items" to player
- wait 2 ticks
- GuiFillForge(player,45,red stained glass pane)
- GuiFillForge(player,36,black stained glass pane)
- wait 2 ticks
- create gui slot 1 of player with diamond helmet named "Helmet" with lore "Price:" to run:
- close player's inventory
- create gui slot 10 of player with diamond chestplate named "Chestplate" with lore "Price" to run:
- close player's inventory
- create gui slot 19 of player with diamond Leggings named "Leggings" with lore "Price" to run:
- close player's inventory
- create gui slot 28 of player with diamond boots named "Boots" with lore "Price" to run:
- close player's inventory
- create gui slot 7 of player with diamond sword named "Sword" with lore "Price:" to run:
- close player's inventory
- create gui slot 16 of player with diamond pickaxe named "Pickaxe" with lore "Price:" to run:
- close player's inventory
- create gui slot 25 of player with diamond shovel named "Shovel" with lore "Price:" to run:
- close player's inventory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement