Im trying to make different shops at different places. but when i try to do it. They all pop up at the same time. Well this is my skript
on right click on player head:
if location of event-block is location {_tutorial}:
play sound "entity.villager.ambient" at volume 1 and pitch 1 at player's location for player
open virtual chest inventory with size 3 named "Tutorial Man" to player
format gui slot 10 of player with ("MrSnowDK" parsed as offline player)'s skull named "&6How Do I Earn Money" to run:
send "Aa You Find Yellow Wool and you earn money or you can do certain quest from others"
play sound "entity.villager.ambient" at volume 1 and pitch 1 at player's location for player
format gui slot 13 of player with iron sword named "&6How Do I Get Stronger" to run:
send "Try to evolve your mana and gain other crazy abilities. You can also find trainers" to player
play sound "entity.villager.ambient" at volume 1 and pitch 1 at player's location for player
on right click on player head:
if location of event-block is location {_blacksmithspot}:
play sound "entity.villager.ambient" at volume 1 and pitch 1 at player's location for player
open virtual chest inventory with size 3 named "Weapon Shop" to player
format gui slot 10 of player with wooden sword named "&6Wood Sword (10$)" with lore "Cooldown: 0.3 seconds" and "Damage: 4" to run:
if {money.%player%} is greater than 9:
give player 1 of wooden sword named "Wood Sword" with lore "Great Sword For EXP"
play sound "entity.villager.ambient" at volume 1 and pitch 1 at player's location for player
format gui slot 13 of player with stone sword named "&6Dagger (35)" with lore "Cooldown: 0" and "Damage: 5" to run:
if {money.%player%} is greater than 34:
give player 1 of stone sword named "Dagger" with lore "Probably this will be the meta"
play sound "entity.villager.ambient" at volume 1 and pitch 1 at player's location for player
on right click on player head:
if location of event-block is location {_tutorial}:
play sound "entity.villager.ambient" at volume 1 and pitch 1 at player's location for player
open virtual chest inventory with size 3 named "Tutorial Man" to player
format gui slot 10 of player with ("MrSnowDK" parsed as offline player)'s skull named "&6How Do I Earn Money" to run:
send "Aa You Find Yellow Wool and you earn money or you can do certain quest from others"
play sound "entity.villager.ambient" at volume 1 and pitch 1 at player's location for player
format gui slot 13 of player with iron sword named "&6How Do I Get Stronger" to run:
send "Try to evolve your mana and gain other crazy abilities. You can also find trainers" to player
play sound "entity.villager.ambient" at volume 1 and pitch 1 at player's location for player
on right click on player head:
if location of event-block is location {_blacksmithspot}:
play sound "entity.villager.ambient" at volume 1 and pitch 1 at player's location for player
open virtual chest inventory with size 3 named "Weapon Shop" to player
format gui slot 10 of player with wooden sword named "&6Wood Sword (10$)" with lore "Cooldown: 0.3 seconds" and "Damage: 4" to run:
if {money.%player%} is greater than 9:
give player 1 of wooden sword named "Wood Sword" with lore "Great Sword For EXP"
play sound "entity.villager.ambient" at volume 1 and pitch 1 at player's location for player
format gui slot 13 of player with stone sword named "&6Dagger (35)" with lore "Cooldown: 0" and "Damage: 5" to run:
if {money.%player%} is greater than 34:
give player 1 of stone sword named "Dagger" with lore "Probably this will be the meta"
play sound "entity.villager.ambient" at volume 1 and pitch 1 at player's location for player