Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command grass:
- trigger:
- open chest inventory with 6 rows named "&8&l buy grass" to player
- set slot 18 of player's current inventory to red Stained Glass Pane named "&c&lset to 1 "
- set slot 19 of player's current inventory to red Stained Glass Pane named "&c&lremove 10 "
- set slot 20 of player's current inventory to red Stained Glass Pane named "&c&l remove 1 "
- set slot 22 of player's current inventory to grass named "&7Grass Block" with lore "&7buy price:&a$3"
- set slot 24 of player's current inventory to lime Stained Glass Pane named "&a&ladd 1"
- set slot 25 of player's current inventory to lime Stained Glass Pane named "&a&ladd 10"
- set slot 26 of player's current inventory to lime Stained Glass Pane named "&a&lset to 64"
- set slot 39 of player's current inventory to lime Stained Glass named "&a&lconfirm"
- set slot 41 of player's current inventory to red Stained Glass named "&c&lcancel"
- set slot 49 of player's current inventory to 64 lime Stained Glass named "&a&lbuy more"
- on inventory click:
- event-inventory != player's inventory:
- name of player' current inventory = "&8&l buy grass":
- event-slot = lime Stained Glass Pane:
- index of event-slot = 24:
- name of event-slot = "&a&ladd 1":
- event-click type = left mouse button:
- cancel event
- if {BlocksPurchase} is less than or equal to 63:
- set {pricegrass} to 3
- add 1 to {BlocksPurchase}
- set slot 22 of player's current inventory to {BlocksPurchase} of grass named "&7Grass Block" with lore "&7price:%{BlocksPurchase}*3%"
- else if {BlocksPurchase} = 64:
- set slot 24 of player's current inventory to air
- else:
- set {BlocksPurchase} to 1
- set slot 22 of player's current inventory to 1 of grass named "&7Grass Block"
- on inventory click:
- event-inventory != player's inventory:
- name of player' current inventory = "&8&l buy grass":
- event-slot = lime Stained Glass Pane:
- index of event-slot = 25:
- name of event-slot = "&a&ladd 10":
- event-click type = left mouse button:
- set slot 22 of player's current inventory to grass named "&7Grass Block" with lore "&7price:%{BlocksPurchase}*3%"
- cancel event
- if {BlocksPurchase} is less than or equal to 63:
- set {pricegrass} to 3
- add 10 to {BlocksPurchase}
- set slot 22 of player's current inventory to {BlocksPurchase} of grass named "&7Grass Block" with lore "&7price:%{BlocksPurchase}*3%"
- else if {BlocksPurchase} = 54:
- set slot 25 of player's current inventory to air
- else:
- set {BlocksPurchase} to 1
- set slot 22 of player's current inventory to 1 of grass named "&7Grass Block"
- on inventory click:
- event-inventory != player's inventory:
- name of player' current inventory = "&8&l buy grass":
- event-slot = lime Stained Glass Pane:
- index of event-slot = 26:
- name of event-slot = "&a&lset to 64":
- event-click type = left mouse button:
- cancel event
- if {BlocksPurchase} is less than or equal to 63:
- add 64 to {BlocksPurchase}
- set slot 22 of player's current inventory to {BlocksPurchase} of grass named "&7Grass Block" with lore "&7price:%{BlocksPurchase}*3%"
- else:
- set {BlocksPurchase} to 1
- set slot 22 of player's current inventory to 1 of grass named "&7Grass Block"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement