#Can't get the View Requirements to work correctly.

1 messages · Page 1 of 1 (latest)

low prairie
#

I need some help with Deluxemenus. I've been making my own towny menu but the placeholder that I'm using for the view requirements is %townyadvanced_has_town% and It's not working correctly like it should. I made sure to parse it and it came back either true or false. I can't seem to fix this issue.

#
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]"
thorn ember
#

is the response colored @low prairie ?

exotic plinth
thorn ember
#

ah yes, missed that