Untitled
raw download clone
TEXT
views 15
,
size 5903 b
command /shop:
	trigger: 
		
		#Open inventory
		
		open virtual chest inventory with size 3 named "Shop" to player
		
		#Black Glass Fillers
		
		format gui slot integers between 0 and 26 of player with black stained glass pane named " "
		
		#Main Clickables
		
		format gui slot 10 of player with red stained glass pane named "&cComing Soon" with lore "&r&oThe shop to buy generators"
		format gui slot 13 of player with Grass Block named "&r&aMain Shop" with lore "&r&oThe main shop with most buyable items" to run:
			player command "/is shop"
			wait 1 tick
		format gui slot 16 of player with mob spawner named "&cComing Soon" with lore "&r&oThe shop to buy spawners" to run:
			send "&cWarning:" to player
			send "&6This feature is not completely done, so many bugs may still occur" to player
			open virtual chest inventory with size 3 named "Spawners" to player
			format gui slot integers between 0 and 26 of player with black stained glass pane named " "
			format gui slot 22 of player with nether star named "&r&eBack" to run player command "/shop"
			format gui slot 0 of player with spawner named "&r&d&lPig &7Spawner" with lore "&r&7Buy: &r&c$10,000" to run:
				if player's balance >= 10000:
					console command "/give %player% pigspawner 1 name:&r&d&lPig_&7Spawner"
					send "&aSuccessfully &7purchased &d&lPig &7Spawner&r!" to player
					remove 10000 from player's balance
					close player's inventory
				else:
					send "&cNot enough &amoney&c!" to player
			format gui slot 1 of player with spawner named "&r&c&lCow &7Spawner" with lore "&r&7Buy: &r&c$10,000" to run:
				if player's balance >= 10000:
					console command "/give %player% cowspawner 1 name:&r&c&lCow_&7Spawner"
					send "&aSuccessfully &7purchased &c&lCow &7Spawner&r!" to player
					remove 10000 from player's balance
					close player's inventory
				else:
					send "&cNot enough &amoney&c!" to player
			format gui slot 2 of player with spawner named "&r&lSheep &7Spawner" with lore "&r&7Buy: &r&c$10,000" to run:
				if player's balance >= 10000:
					console command "/give %player% sheepspawner 1 name:&r&lSheep_&7Spawner"
					send "&aSuccessfully &7purchased &lSheep&7Spawner&r!" to player
					remove 10000 from player's balance
					close player's inventory
				else:
					send "&cNot enough &amoney&c!" to player
			format gui slot 3 of player with spawner named "&r&e&lChicken &7Spawner" with lore "&r&7Buy: &r&c$10,000" to run:
				if player's balance >= 10000:
					console command "/give %player% chickenspawner 1 name:&r&e&lChicken_&7Spawner"
					send "&aSuccessfully &7purchased &elChicken &7Spawner&r!" to player
					remove 10000 from player's balance
					close player's inventory
				else:
					send "&cNot enough &amoney&c!" to player
			format gui slot 4 of player with spawner named "&r&2&lZombie &7Spawner" with lore "&r&7Buy: &r&c$20,000" to run:
				if player's balance >= 20000:
					console command "/give %player% zombiespawner 1 name:&r&2&lZombie_&7Spawner"
					send "&aSuccessfully &7purchased &2&lZombie &7Spawner&r!" to player
					remove 20000 from player's balance
					close player's inventory
				else:
					send "&cNot enough &amoney&c!" to player
			format gui slot 5 of player with spawner named "&r&7&lSkeleton &7Spawner" with lore "&r&7Buy: &r&c$20,000" to run:
				if player's balance >= 20000:
					console command "/give %player% skeletonspawner 1 name:&r&7&lSkeleton_&7Spawner"
					send "&aSuccessfully &7purchased &7&lSkeleton &7Spawner&r!" to player
					remove 20000 from player's balance
					close player's inventory
				else:
					send "&cNot enough &amoney&c!" to player
			format gui slot 6 of player with spawner named "&r&a&lCreeper &7Spawner" with lore "&r&7Buy: &r&c$20,000" to run:
				if player's balance >= 20000:
					console command "/give %player% creeperspawner 1 name:&r&a&lCreeper_&7Spawner"
					send "&aSuccessfully &7purchased &a&lCreeper &7Spawner&r!" to player
					remove 20000 from player's balance
					close player's inventory
				else:
					send "&cNot enough &amoney&c!" to player
			format gui slot 7 of player with spawner named "&r&8&lSpider &7Spawner" with lore "&r&7Buy: &r&c$20,000" to run:
				if player's balance >= 20000:
					console command "/give %player% cowspawner 1 name:&r&8&lSpider_&7Spawner"
					send "&aSuccessfully &7purchased &8&lSpider &7Spawner&r!" to player
					remove 20000 from player's balance
					close player's inventory
				else:
					send "&cNot enough &amoney&c!" to player
			format gui slot 8 of player with spawner named "&r&3&lDrowned &7Spawner" with lore "&r&7Buy: &r&c$25,000" to run:
				if player's balance >= 25000:
					console command "/give %player% drownedspawner 1 name:&r&3&lDrowned_&7Spawner"
					send "&aSuccessfully &7purchased &3&lDrowned &7Spawner&r!" to player
					remove 25000 from player's balance
					close player's inventory
				else:
					send "&cNot enough &amoney&c!" to player
			format gui slot 9 of player with spawner named "&r&6&lBlaze &7Spawner" with lore "&r&7Buy: &r&c$40,000" to run:
				if player's balance >= 40000:
					console command "/give %player% blazespawner 1 name:&r&6&lBlaze_&7Spawner"
					send "&aSuccessfully &7purchased &6&lBlaze &7Spawner&r!" to player
					remove 40000 from player's balance
					close player's inventory
				else:
					send "&cNot enough &amoney&c!" to player
			format gui slot 16 of player with spawner named "&r&lIron Golem &7Spawner" with lore "&r&7Buy: &r&c$125,000" to run:
				if player's balance >= 125000:
					console command "/give %player% irongolemspawner 1 name:&r&lIron_Golem_&7Spawner"
					send "&aSuccessfully &7purchased &lIron Golem&7Spawner&r!" to player
					remove 125000 from player's balance
					close player's inventory
				else:
					send "&cNot enough &amoney&c!" to player
close fullscreen
Login or Register to edit or fork this paste. It's free.