Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GUI(block: item, slot: number, player: player):
- close {_player}'s inventory
- open chest with 6 rows named "Shop" to {_player}
- wait 1 tick
- set {_yrow1} to 2
- set {_yrow2} to 1
- set {_yrow3} to 8
- set {_xrow1} to 3
- set {_xrow2} to 48
- loop 5 times:
- format slot {_xrow1} of {_player} with {_block} named "" to be unstealable
- add 1 to {_xrow1}
- loop 5 times:
- format slot {_xrow2} of {_player} with {_block} named "" to be unstealable
- add 1 to {_xrow2}
- loop 6 times:
- format slot {_yrow1} of {_player} with {_block} named "" to be unstealable
- add 9 to {_yrow1}
- loop 6 times:
- format slot {_yrow3} of {_player} with {_block} named "" to be unstealable
- add 9 to {_yrow3}
- loop 6 times:
- format slot {_yrow2} of {_player} with black glass named "" to be unstealable
- add 9 to {_yrow2}
- format slot {_slot} of {_player} with {_block} named "" to be unstealable
- on right click on entity:
- if entity is a villager:
- player is in world "Empty"
- execute player command "/buy roomn1"
- command /buy [<text>]:
- trigger:
- if arg-1 is "roomn1":
- close the player's inventory
- set {_p} to player
- GUI((white glass), (1), (player))
- wait 2 tick
- format slot 0 of player with oak planks named "&6Blocks." to be unstealable
- format slot 9 of player with wood sword named "&6Tools." to run [execute player command "/buy roomn2"]
- format slot 18 of player with apple named "&6Utilities." to run [execute player command "/buy roomn3"]
- format slot 27 of player with leather chestplate named "&6Armor." to run [execute player command "/buy roomn4"]
- format slot 36 of player with crafting table named "&6Block Upgrades." to run [execute player command "/buy roomn5"]
- wait 1 tick
- format slot 22 of player with white wool block named "&6Wool." with lore "&7Costs &8>> &63x Brick.||&7Amount &8>> &616x" to run [execute player command "/buy wool"]
- format slot 23 of player with oak planks named "&6Planks." with lore "&7Costs &8>> &68x Brick.||&7Amount &8>> &68x" to run [execute player command "/buy planks"]
- if arg-1 is "roomn2":
- set {_p} to player
- GUI((red glass), (10), (player))
- wait 2 tick
- format slot 0 of player with oak planks named "&6Blocks." to run [execute player command "/buy roomn1"]
- format slot 9 of player with wood sword named "&6Tools." to be unstealable
- format slot 18 of player with apple named "&6Utilities." to run [execute player command "/buy roomn3"]
- format slot 27 of player with leather chestplate named "&6Armor." to run [execute player command "/buy roomn4"]
- format slot 36 of player with crafting table named "&6Block Upgrades." to run [execute player command "/buy roomn5"]
- wait 1 tick
- format slot 22 of player with stone sword named "&6Stone Sword." with lore "&7Costs &8>> &68x Brick.||&7Amount &8>> &61x" to run [execute player command "/buy stonesword"]
- format slot 23 of player with iron sword named "&6Iron Sword." with lore "&7Costs &8>> &624x Brick.||&7Amount &8>> &61x" to run [execute player command "/buy ironsword"]
- format slot 31 of player with stone axe named "&6Stone Axe." with lore "&7Costs &8>> &68x Brick.||&7Amount &8>> &61x" to run [execute player command "/buy stoneaxe"]
- format slot 32 of player with iron axe named "&6Iron Axe." with lore "&7Costs &8>> &616x Brick.||&7Amount &8>> &61x" to run [execute player command "/buy ironaxe"]
- format slot 40 of player with stone pickaxe named "&6Stone Pick-Axe." with lore "&7Costs &8>> &616x Brick.||&7Amount &8>> &61x" to run [execute player command "/buy stonepick"]
- format slot 41 of player with iron pickaxe named "&6Iron Pick-Axe." with lore "&7Costs &8>> &624x Brick.||&7Amount &8>> &61x" to run [execute player command "/buy ironpick"]
- if arg-1 is "roomn3":
- set {_p} to player
- GUI((green glass), (19), (player))
- wait 2 tick
- format slot 0 of player with oak planks named "&6Blocks." to run [execute player command "/buy roomn1"]
- format slot 9 of player with wood sword named "&6Tools." to run [execute player command "/buy roomn2"]
- format slot 18 of player with apple named "&6Utilities." to be unstealable
- format slot 27 of player with leather chestplate named "&6Armor." to run [execute player command "/buy roomn4"]
- format slot 36 of player with crafting table named "&6Block Upgrades." to run [execute player command "/buy roomn5"]
- wait 1 tick
- format slot 22 of player with golden apple:1 named "&6Golden Apple." with lore "&7Costs &8>> &68x Brick.||&7Amount &8>> &61x" to run [execute player command "/buy gapple"]
- if arg-1 is "roomn4":
- set {_p} to player
- GUI((blue glass), (28), (player))
- wait 2 tick
- format slot 0 of player with oak planks named "&6Blocks." to run [execute player command "/buy roomn1"]
- format slot 9 of player with wood sword named "&6Tools." to run [execute player command "/buy roomn2"]
- format slot 18 of player with apple named "&6Utilities." to run [execute player command "/buy roomn3"]
- format slot 27 of player with leather chestplate named "&6Armor." to be unstealable
- format slot 36 of player with crafting table named "&6Block Upgrades." to run [execute player command "/buy roomn5"]
- wait 1 tick
- format slot 22 of player with iron boots named "&6Iron Boots." with lore "&7Costs &8>> &68x Brick.||&7Amount &8>> &61x" to run [execute player command "/buy ironboots"]
- format slot 23 of player with iron leggings named "&6Iron Leggings." with lore "&7Costs &8>> &612x Brick.||&7Amount &8>> &61x" to run [execute player command "/buy ironleggings"]
- format slot 24 of player with iron chestplate named "&6Iron Chestplate." with lore "&7Costs &8>> &616x Brick.||&7Amount &8>> &61x" to run [execute player command "/buy ironchestplate"]
- if arg-1 is "roomn5":
- set {_p} to player
- GUI((yellow glass), (37), (player))
- wait 2 tick
- format slot 0 of player with oak planks named "&6Blocks." to run [execute player command "/buy roomn1"]
- format slot 9 of player with wood sword named "&6Tools." to run [execute player command "/buy roomn2"]
- format slot 18 of player with apple named "&6Utilities." to run [execute player command "/buy roomn3"]
- format slot 27 of player with leather chestplate named "&6Armor." to run [execute player command "/buy roomn4"]
- format slot 36 of player with crafting table named "&6Block Upgrades." to be unstealable
- wait 1 tick
- format slot 22 of player with a non-burning furnace named "&6Upgrade ##1" with lore "&7Costs &8>> &632x Brick.||&7Amount &8>> &61x" to run [execute player command "/buy upgrade1"]
- if arg-1 is "upgrade1":
- set {_cs} to 0
- loop 4 times:
- add 1 to {_cs}
- if {BW.Player1::Arena%{_cs}%} or {BW.Player3::Arena%{_cs}%} is player:
- if block at location of {BW.blockspot1::Arena%{_cs}%} is a furnace:
- send " {@Skript} >> &7You have already used this upgrade!"
- else:
- player has 32 bricks named "&6Brick"
- remove 32 bricks from player
- set block at location of {BW.blockspot1::Arena%{_cs}%} to furnace
- send " {@Skript} >> &7You have now upgraded the Block to a furnace!"
- if {BW.Player2::Arena%{_cs}%} or {BW.Player4::Arena%{_cs}%} is player:
- if block at location of {BW.blockspot2::Arena%{_cs}%} is a furnace:
- send " {@Skript} >> &7You have already used this upgrade!"
- else:
- player has 32 bricks named "&6Brick"
- remove 32 bricks from player
- set block at location of {BW.blockspot2::Arena%{_cs}%} to furnace
- send " {@Skript} >> &7You have now upgraded the Block to a furnace!"
- if arg-1 is "wool":
- player has 3 bricks named "&6Brick"
- remove 3 bricks from player
- set {_cs} to 0
- loop 4 times:
- add 1 to {_cs}
- if {BW.Player1::Arena%{_cs}%} or {BW.Player3::Arena%{_cs}%} is player:
- give player 8 red wool
- if {BW.Player2::Arena%{_cs}%} or {BW.Player4::Arena%{_cs}%} is player:
- give player 8 blue wool
- if arg-1 is "planks":
- player has 8 bricks named "&6Brick"
- remove 8 bricks from player
- set {_cs} to 0
- loop 4 times:
- add 1 to {_cs}
- if {BW.Player1::Arena%{_cs}%} or {BW.Player3::Arena%{_cs}%} is player:
- give player 8 oak planks
- if {BW.Player2::Arena%{_cs}%} or {BW.Player4::Arena%{_cs}%} is player:
- give player 8 oak planks
- if arg-1 is "gapple":
- player has 8 bricks named "&6Brick"
- remove 8 bricks from player
- set {_cs} to 0
- loop 4 times:
- add 1 to {_cs}
- if {BW.Player1::Arena%{_cs}%}, {BW.Player2::Arena%{_cs}%}, {BW.Player3::Arena%{_cs}%} or {BW.Player4::Arena%{_cs}%} is player:
- give player 1 golden apple
- if arg-1 is "stoneaxe":
- set {_cs} to 0
- loop 4 times:
- add 1 to {_cs}
- if {BW.Player1::Arena%{_cs}%}, {BW.Player2::Arena%{_cs}%}, {BW.Player3::Arena%{_cs}%} or {BW.Player4::Arena%{_cs}%} is player:
- if player has an stone axe:
- send " {@Skript} >> &7You already have a stone axe!"
- else:
- player has 8 bricks named "&6Brick"
- remove 8 bricks from player
- give player 1 stone axe
- if arg-1 is "stonepick":
- set {_cs} to 0
- loop 4 times:
- add 1 to {_cs}
- if {BW.Player1::Arena%{_cs}%}, {BW.Player2::Arena%{_cs}%}, {BW.Player3::Arena%{_cs}%} or {BW.Player4::Arena%{_cs}%} is player:
- if player has an stone pickaxe:
- send " {@Skript} >> &7You already have a stone pickaxe!"
- else:
- player has 16 bricks named "&6Brick"
- remove 16 bricks from player
- give player 1 stone pickaxe
- if arg-1 is "ironpick":
- set {_cs} to 0
- loop 4 times:
- add 1 to {_cs}
- if {BW.Player1::Arena%{_cs}%}, {BW.Player2::Arena%{_cs}%}, {BW.Player3::Arena%{_cs}%} or {BW.Player4::Arena%{_cs}%} is player:
- if player has an iron pickaxe:
- send " {@Skript} >> &7You already have a iron pickaxe!"
- else:
- player has 24 bricks named "&6Brick"
- remove 24 bricks named "&6Brick" from player
- give player 1 iron pickaxe
- if arg-1 is "ironaxe":
- set {_cs} to 0
- loop 4 times:
- add 1 to {_cs}
- if {BW.Player1::Arena%{_cs}%}, {BW.Player2::Arena%{_cs}%}, {BW.Player3::Arena%{_cs}%} or {BW.Player4::Arena%{_cs}%} is player:
- if player has an iron axe:
- send " {@Skript} >> &7You already have a iron axe!"
- else:
- player has 16 bricks named "&6Brick"
- remove 16 bricks from player
- give player 1 iron axe
- if arg-1 is "stonesword":
- set {_cs} to 0
- loop 4 times:
- add 1 to {_cs}
- if {BW.Player1::Arena%{_cs}%} or {BW.Player3::Arena%{_cs}%} is player:
- if player has an stone sword:
- send " {@Skript} >> &7You already have a stone sword!"
- else:
- player has 8 bricks named "&6Brick"
- remove 8 bricks from player
- remove wooden sword from player
- give player 1 stone sword
- if {BW.Player2::Arena%{_cs}%} or {BW.Player4::Arena%{_cs}%} is player:
- if player has an stone sword:
- send " {@Skript} >> &7You already have a stone sword!"
- else:
- player has 8 bricks named "&6Brick"
- remove 8 bricks from player
- remove wooden sword from player
- give player 1 stone sword
- if arg-1 is "ironsword":
- set {_cs} to 0
- loop 4 times:
- add 1 to {_cs}
- if {BW.Player1::Arena%{_cs}%} or {BW.Player3::Arena%{_cs}%} is player:
- if player has an iron sword:
- send " {@Skript} >> &7You already have a iron sword!"
- else:
- player has 24 bricks named "&6Brick"
- remove 24 bricks from player
- remove wooden sword from player
- remove stone sword from player
- give player 1 iron sword
- if {BW.Player2::Arena%{_cs}%} or {BW.Player4::Arena%{_cs}%} is player:
- if player has an iron sword:
- send " {@Skript} >> &7You already have a iron sword!"
- else:
- player has 24 bricks named "&6Brick"
- remove 24 bricks from player
- remove wooden sword from player
- remove stone sword from player
- give player 1 iron sword
- if arg-1 is "ironboots":
- set {_cs} to 0
- loop 4 times:
- add 1 to {_cs}
- if {BW.Player1::Arena%{_cs}%} or {BW.Player3::Arena%{_cs}%} is player:
- if player has an iron boots:
- send " {@Skript} >> &7You already have a iron boots!"
- else:
- player has 8 bricks named "&6Brick"
- remove 8 bricks from player
- set player's boots slot to an iron boots
- if {BW.Player2::Arena%{_cs}%} or {BW.Player4::Arena%{_cs}%} is player:
- if player has an iron helmet:
- send " {@Skript} >> &7You already have a iron boots!"
- else:
- player has 8 bricks named "&6Brick"
- remove 8 bricks from player
- set player's boots slot to an iron boots
- if arg-1 is "ironchestplate":
- set {_cs} to 0
- loop 4 times:
- add 1 to {_cs}
- if {BW.Player1::Arena%{_cs}%} or {BW.Player3::Arena%{_cs}%} is player:
- if player has an iron chestplate:
- send " {@Skript} >> &7You already have a iron chestplate!"
- else:
- player has 18 bricks named "&6Brick"
- remove 18 bricks from player
- set player's chestplate slot to an iron chestplate
- if {BW.Player2::Arena%{_cs}%} or {BW.Player4::Arena%{_cs}%} is player:
- if player has an iron chestplate:
- send " {@Skript} >> &7You already have a iron chestplate!"
- else:
- player has 18 bricks named "&6Brick"
- remove 18 bricks from player
- set player's chestplate slot to an iron chestplate
- if arg-1 is "ironleggings":
- set {_cs} to 0
- loop 4 times:
- add 1 to {_cs}
- if {BW.Player1::Arena%{_cs}%} or {BW.Player3::Arena%{_cs}%} is player:
- if player has an iron leggings:
- send " {@Skript} >> &7You already have a iron leggings!"
- else:
- player has 12 bricks named "&6Brick"
- remove 12 bricks from player
- set player's leggings slot to an iron leggings
- if {BW.Player2::Arena%{_cs}%} or {BW.Player4::Arena%{_cs}%} is player:
- if player has an iron leggings:
- send " {@Skript} >> &7You already have a iron leggings!"
- else:
- player has 12 bricks named "&6Brick"
- remove 12 bricks from player
- set player's leggings slot to an iron leggings
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement