#Can't get the View Requirements to work correctly.
1 messages · Page 1 of 1 (latest)
items:
"barrier1":
material: GRAY_STAINED_GLASS_PANE
priority: 2
display_name: " "
slots:
- 0-44
view_requirements:
requirements:
hastown:
type: string equals
input: "%townyadvanced_has_town%"
output: "true"
"notown":
material: RED_STAINED_GLASS_PANE
priority: 1
display_name: " &c✕ ʏᴏᴜ ᴅᴏɴ'ᴛ ʜᴀᴠᴇ ᴀ ᴛᴏᴡɴ ✕"
slots:
- 0-44
view_requirements:
requirements:
hasnotown:
type: string equals
input: "%townyadvanced_has_town%"
output: "false"
# Create a town area
"create-town":
material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjFkZDRmZTRhNDI5YWJkNjY1ZGZkYjNlMjEzMjFkNmVmYTZhNmI1ZTdiOTU2ZGI5YzVkNTljOWVmYWIyNSJ9fX0
priority: 0
slots:
- 21
display_name: " &6&lᴄʀᴇᴀᴛᴇ ᴀ ɴᴇᴡ ᴛᴏᴡɴ "
lore:
- ""
- " &7ᴄʀᴇᴀᴛᴇ ᴀ ɴᴇᴡ ᴛᴏᴡɴ ᴛʜᴀᴛ ᴡɪʟʟ"
- " &7ʙᴇ ʏᴏᴜʀ ɴᴀᴍᴇ."
- ""
- " &7ᴄᴏsᴛ ᴛᴏ ᴄʀᴇᴀᴛᴇ ᴀ ᴛᴏᴡɴ ɪs &a%townyadvanced_town_creation_cost%"
- ""
- " &7&oᴄʟɪᴄᴋ ᴛᴏ ᴄʀᴇᴀᴛᴇ"
left_click_commands:
- "[player] t new %player_name%"
- "[close]"
- "[sound] ENTITY_CHICKEN_EGG"
view_requirements:
requirements:
hasnotown:
type: string equals
input: "%townyadvanced_has_town%"
output: "false"
"create-town2":
material: OAK_SIGN
priority: 0
slots:
- 23
display_name: " &6&lᴄʀᴇᴀᴛᴇ ᴀ ɴᴇᴡ ᴛᴏᴡɴ "
lore:
- ""
- " &7ᴄʀᴇᴀᴛᴇ ᴀ ᴛᴏᴡɴ ᴛʜᴀᴛ ᴡɪʟʟ ʜᴀᴠᴇ ᴀ"
- " &7ᴄᴜsᴛᴏᴍ ɴᴀᴍᴇ ᴛʜᴀᴛ ʏᴏᴜ ᴄʜᴏᴏsᴇ."
- ""
- " &7ᴄᴏsᴛ ᴛᴏ ᴄʀᴇᴀᴛᴇ ᴀ ᴛᴏᴡɴ ɪs &a%townyadvanced_town_creation_cost%"
- ""
- " &7&oᴄʟɪᴄᴋ ᴛᴏ ᴄʀᴇᴀᴛᴇ"
left_click_commands:
- "[player] t new <&8Enter the name of your new town:>"
- "[close]"
- "[sound] ENTITY_CHICKEN_EGG"
view_requirements:
requirements:
hasnotown:
type: string equals
input: "%townyadvanced_has_town%"
output: "false"
# Main Menu Items
"close":
material: barrier
slot: 40
priority: 0
display_name: "&c✘ ᴄʟᴏsᴇ"
lore: []
left_click_commands:
- "[close]"
right_click_commands:
- "[close]"
"about":
material: BOOK
slot: 4
priority: 2
display_name: "&aᴀʙᴏᴜᴛ ᴛᴏᴡɴʏ &8| &7ʜᴏᴡ ᴛᴏ ᴜsᴇ ᴛᴏᴡɴʏ"
lore:
- ""
- ""
left_click_commands:
- "[message] "
- "[message] &dHere is the link to the wiki page"
- "[message]"
- "[close]"
- "[sound] ENTITY_CHICKEN_EGG"
"Profile":
material: "ARMOR_STAND"
priority: 2
slots:
- 8
display_name: "&#FFF600ᴛᴏᴡɴ ɪɴғᴏʀᴍᴀᴛɪᴏɴ"
lore:
- "&8ᴛᴏᴡɴ ᴘᴀɴᴇʟ"
- "&r"
left_click_commands:
- "[refresh]"
is the response colored @low prairie ?
I had an issue like this before. Try view_requirement , not view_requirements. The extra ‘s’ caused it not to work for me
ah yes, missed that