#view_requirement isn't works

1 messages · Page 1 of 1 (latest)

hollow bobcat
#
  selflock:
    material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjZmODRiZjlhZTJjYTYzMDdlY2Y3MWI4ODYyNjllMmZiYzJhZTZkYzEzNzAxNjhmOWYwZWYyYmQ0OTY0Y2VkMCJ9fX0=
    slot: 50
    priority: 0
    update: true
    item_flags: [HIDE_ATTRIBUTES]
    display_name: ' '
    lore:
      - ' &#FF0000Л&#F70000и&#F00000ч&#E80000н&#E10000ы&#D90000й &#CA0000т&#C30000и&#BB0000т&#B40000у&#AC0000л'
      - ''
      - ' &7| &fСтатус: &#f52249Заблокирован'
      - ''
      - ' &7| &fМожно купить на сайте:   '
      - ' &7| &eMy website  '
      - ''
    click_commands:
      - '[sound] entity_evoker_hurt'
      - '[message] &f'
      - '[message] &f &7• &#AD5BFFСайт проекта: &f&nMy website'
      - '[message] &f'
      - '[close]'
      
  self_4yro4ka_unlock:
    material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODllNDMzMzg0YWVmOTdkMTUzNzBiYWQ0NDI2YThmYTEzNDNkNWNkMzMwMDY3ZWFmZGYyOTg4MWJhMjYwMjhmMyJ9fX0=
    slot: 50
    priority: 5
    update: true
    item_flags: [HIDE_ATTRIBUTES]
    display_name: ' '
    lore:
      - ' &fТитул &8| &#FF8A8A&lᴅ&#FF8791&lᴇ&#FF8499&lᴠ &#FF7FA8&lᴛ&#FF7CAF&lᴇ&#FF79B7&lᴀ&#FF76BE&lᴍ'
      - ''
      - ' &7| &fСтатус: &#4eff65Разблокирован'
      - ' &7| &fБудет выглядеть так:'
      - ' &7• %luckperms_prefix%%player_name% &#FF8A8A&lᴅ&#FF8791&lᴇ&#FF8499&lᴠ &#FF7FA8&lᴛ&#FF7CAF&lᴇ&#FF79B7&lᴀ&#FF76BE&lᴍ'
      - ''
      - ' &7| &#4eff65Нажмите, &fчтобы &#4eff65установить &fтитул.  '
      - ''
    click_commands:
      - '[console] lp user %player_name% meta setsuffix " &#FF8A8A&lᴅ&#FF8791&lᴇ&#FF8499&lᴠ &#FF7FA8&lᴛ&#FF7CAF&lᴇ&#FF79B7&lᴀ&#FF76BE&lᴍ"'
      - '[sound] BLOCK_NOTE_BLOCK_IRON_XYLOPHONE'
    view_requirement:
      requirements:
        player_name:
          type: string equals
          input: "%player_is_op%"
          output: "yes"
lethal violet
#

what exacly isn't working

#

what do you see when you are OP?

#

i also belive if you add the following view requirement to selflock: you will get your wanted result

    view_requirement:
      requirements:
        player_name:
          type: string equals
          input: "%player_is_op%"
          output: "no"
hollow bobcat
hollow bobcat
lethal violet
#

if you are not willing to try, i don't see why you seek for help here.

hollow bobcat
#

despite of this ok, ill try tommorow

#

because now im going to sleep

silk cipher
#

You can keep everything else the same.

silk cipher
#

Also, have you tested the placeholder to make sure that it works? Use /papi parse me %player_is_op%

hollow bobcat
#

Forget %player_is_op%, I need %player_name% in input

silk cipher
silk cipher
hollow bobcat
#

wait a sec

silk cipher
hollow bobcat
silk cipher
hollow bobcat
silk cipher
#

here is your problem. You have 2 items in slot: 50 with the same priority

hollow bobcat
#

it might be like that, cause I need to make so many the same items

#

or I must change priority for each?

silk cipher