Сборки серверов

СливПлатные

Новые сообщения

Сейчас онлайн

  • TheMrEvgen
  • loganbodart_
  • quad
  • blacksoulsminecraft
  • MythicWay
  • vuibe
  • HapiXLAPI
  • V1kno
  • Dolfin
  • Potatusik
  • yaneznauktoya
  • MoonKycb
  • mererenyll
  • ronnexnet
  • deshik91
  • Kurseee
  • z0roday
  • gghi_1374
  • EnergetikUk
  • nikolayvsks

Как наложить эффекты/зачарование на предмет в руке ExecutableItems (если это возможно)

Tanri
Версия ядра сервера
1.19+
В общем мне нужно сделать так, чтобы при держании в руке (любой абсолютно) накладывалось эффект/зачарование подводной ходьбы и вечного дыхания под водой.

Я наложил вроде зачарование на трезубец, но они не работают:
1757527072960
Может подводную ходьбу и вечное дыхание нельзя наложить на трезубец (а накладываются на ботинки и шлем)

Либо я что то делаю не так, вот конфигурация предмета:

YAML:
# The name or display name
name: '&#004FFF&lТ&#0956FF&lр&#125DFF&lе&#1A64FF&lз&#236BFF&lу&#2C72FF&lб&#3579FF&lе&#3D80FF&lц
  &#4F8FFF&lП&#5896FF&lо&#609DFF&lс&#69A4FF&lе&#72ABFF&lй&#7BB2FF&lд&#83B9FF&lо&#8CC0FF&lн&#95C7FF&lа'
# The lore of the item
lore: []
# The material
material: TRIDENT
# Item glowing effect
# ⚠ It adds an useless enchant
# + hide enchants
glow: false
# Disable item stacking ?
disableStack: false
# Keep the item on death ?
keepItemOnDeath: false
# Can be used only by the owner
# ⚠ Require Store item info on true
canBeUsedOnlyByTheOwner: false
# Cancel event if not owner
cancelEventIfNotOwner: false
# BlackListed Activators
# (can be used by everyone even if
# the only owner feature is set to true)
onlyOwnerBlackListedActivators: []
# Store item info ?
# Store the item info like the owner
storeItemInfo: false
# Item unbreakable ?
unbreakable: false
usage: 0
usageLimit: -1
cancelEventIfNoPerm: false
disabledWorlds: []
config_5: true
config_update: true
# Cancel the event if the player has no permission
cancelEventIfNoPermission: false
# The whitelisted worlds features
whitelistedWorlds: []
# Keep the default attributes
# Only for 1.19+
keepDefaultAttributes: false
# For new item LET IT FALSE PLS
# Otherwise you can let it true
# if you want to update your old items turn it FALSE
# But be careful the item tags may change
# it can impact shopkeeper or custom craft recipe
# Only for 1.19+
ignoreKeepDefaultAttributesFeature: true
# The usage features
# Increase or Decrease this usage with
# UsageModification in your activators
usageFeatures:
  # The usage of the item
  # -1 = Infinite
  # Increase or Decrease this usage with
  # UsageModification in your activators
  usage: 1
  # Is refreshable clean
  isRefreshableClean: true
  # The usage limit of the item
  # Usage can't be increased above this value
  usageLimit: -1
# The drop features
dropFeatures:
  # Glow drop
  glowDrop: false
  # The color of the glow
  glowDropColor: WHITE
  # Display custom name above the item
  displayNameDrop: false
# The enchantments of the item
enchantments:
  enchantment0:
    enchantment: Channeling
    # The level of the enchantment
    level: 1
  enchantment1:
    enchantment: Impaling
    # The level of the enchantment
    level: 7
  enchantment2:
    enchantment: Loyalty
    # The level of the enchantment
    level: 3
  enchantment3:
    enchantment: Mending
    # The level of the enchantment
    level: 1
  enchantment4:
    enchantment: Unbreaking
    # The level of the enchantment
    level: 5
  enchantment5:
    enchantment: Aqua_affinity
    # The level of the enchantment
    level: 1
  enchantment6:
    enchantment: Depth_Strider
    # The level of the enchantment
    level: 10
  enchantment7:
    enchantment: Respiration
    # The level of the enchantment
    level: 10
# The hiders features
# Hiders to hide:
# Attributes, Enchants, ...
hiders:
  # Hide enchantments
  hideEnchantments: false
  # Hide unbreakable
  hideUnbreakable: false
  # Hide attributes
  hideAttributes: false
  # Hide usage
  hideUsage: true
  # Hide destroys
  hideDestroys: false
  # Hide placed on
  hidePlacedOn: false
  # Hide dye
  hideDye: false
  # Hide Potion effects
  # and banner tags
  hidePotionEffects: false
# The give first join features
giveFirstJoinFeatures:
  # Enable the feature
  giveFirstJoin: false
  # The amount to give
  giveFirstJoinAmount: 1
  # Slot between 0 and 8 includes
  giveFirstJoinSlot: 0
# The restrictions features
restrictions:
  # The item can't be
  # moved of the inventory
  locked-in-inventory: false
# The variables
# Variables are used to store data like kills / deaths ...
variables: {}
# The activators / triggers
activators: {}
# Display conditions in the lore
displayConditions:
  # Add player conditions to determine
  # when the
  playerConditions: {}
  #
  worldConditions: {}
  #
  itemConditions: {}
  # The placeholders conditions
  placeholdersConditions: {}
  # Enable or disable this feature
  enableFeature: false
# The attributes
attributes: {}
 
GPT-4o
YAML:
# The name or display name
name: ''&#004FFF&lТ&#0956FF&lр&#125DFF&lе&#1A64FF&lз&#236BFF&lу&#2C72FF&lб&#3579FF&lе&#3D80FF&lц
  &#4F8FFF&lП&#5896FF&lо&#609DFF&lс&#69A4FF&lе&#72ABFF&lй&#7BB2FF&lд&#83B9FF&lо&#8CC0FF&lн&#95C7FF&lа' 
# The lore of the item
lore: []
# The material
material: TRIDENT
# Item glowing effect
glow: false
# Disable item stacking ?
disableStack: false
# Keep the item on death ?
keepItemOnDeath: false
# Can be used only by the owner
canBeUsedOnlyByTheOwner: false
# Cancel event if not owner
cancelEventIfNotOwner: false
# BlackListed Activators
onlyOwnerBlackListedActivators: []
# Store item info ?
storeItemInfo: false
# Item unbreakable ?
unbreakable: false
usage: 0
usageLimit: -1
cancelEventIfNoPerm: false
disabledWorlds: []
config_5: true
config_update: true
# Cancel the event if the player has no permission
cancelEventIfNoPermission: false
# The whitelisted worlds features
whitelistedWorlds: []
# Keep the default attributes
keepDefaultAttributes: false
# For new item LET IT FALSE PLS
ignoreKeepDefaultAttributesFeature: true
# The usage features
usageFeatures:
  usage: 1
  isRefreshableClean: true
  usageLimit: -1
# The drop features
dropFeatures:
  glowDrop: false
  glowDropColor: WHITE
  displayNameDrop: false
# The enchantments of the item
enchantments:
  enchantment0:
    enchantment: Channeling
    level: 1
  enchantment1:
    enchantment: Impaling
    level: 7
  enchantment2:
    enchantment: Loyalty
    level: 3
  enchantment3:
    enchantment: Mending
    level: 1
  enchantment4:
    enchantment: Unbreaking
    level: 5
  enchantment5:
    enchantment: Aqua_affinity
    level: 1
  enchantment6:
    enchantment: Depth_Strider
    level: 10
  enchantment7:
    enchantment: Respiration
    level: 10
# The hiders features
hiders:
  hideEnchantments: false
  hideUnbreakable: false
  hideAttributes: false
  hideUsage: true
  hideDestroys: false
  hidePlacedOn: false
  hideDye: false
  hidePotionEffects: false
# The give first join features
giveFirstJoinFeatures:
  giveFirstJoin: false
  giveFirstJoinAmount: 1
  giveFirstJoinSlot: 0
# The restrictions features
restrictions:
  locked-in-inventory: false
# The variables
variables: {}
# The activators / triggers
activators: {}
# Display conditions in the lore
displayConditions:
  playerConditions: {}
  worldConditions: {}
  itemConditions: {}
  placeholdersConditions: {}
  enableFeature: false
# The attributes
attributes: {}

Для того чтобы наложить эффект подводной ходьбы и вечного дыхания, вам нужно использовать специальные механики, такие как эффекты, которые применяются к игроку, когда он держит трезубец. Попробуйте добавить в конфигурацию activators, которые будут активировать эффекты при удерживании предмета.
 
LiSnow
  • LiSnow
  • ᴜᴋʀᴀɪɴᴇ ✅ глᴀʙʜый мᴇʜюшᴋᴏдᴇл, дизᴀйʜ-ᴋᴏпипᴀᴄтᴇᴘ
  • 138
В общем мне нужно сделать так, чтобы при держании в руке (любой абсолютно) накладывалось эффект/зачарование подводной ходьбы и вечного дыхания под водой.

Я наложил вроде зачарование на трезубец, но они не работают:
Посмотреть вложение 64492
Может подводную ходьбу и вечное дыхание нельзя наложить на трезубец (а накладываются на ботинки и шлем)

Либо я что то делаю не так, вот конфигурация предмета:

YAML:
# The name or display name
name: '&#004FFF&lТ&#0956FF&lр&#125DFF&lе&#1A64FF&lз&#236BFF&lу&#2C72FF&lб&#3579FF&lе&#3D80FF&lц
  &#4F8FFF&lП&#5896FF&lо&#609DFF&lс&#69A4FF&lе&#72ABFF&lй&#7BB2FF&lд&#83B9FF&lо&#8CC0FF&lн&#95C7FF&lа'
# The lore of the item
lore: []
# The material
material: TRIDENT
# Item glowing effect
# ⚠ It adds an useless enchant
# + hide enchants
glow: false
# Disable item stacking ?
disableStack: false
# Keep the item on death ?
keepItemOnDeath: false
# Can be used only by the owner
# ⚠ Require Store item info on true
canBeUsedOnlyByTheOwner: false
# Cancel event if not owner
cancelEventIfNotOwner: false
# BlackListed Activators
# (can be used by everyone even if
# the only owner feature is set to true)
onlyOwnerBlackListedActivators: []
# Store item info ?
# Store the item info like the owner
storeItemInfo: false
# Item unbreakable ?
unbreakable: false
usage: 0
usageLimit: -1
cancelEventIfNoPerm: false
disabledWorlds: []
config_5: true
config_update: true
# Cancel the event if the player has no permission
cancelEventIfNoPermission: false
# The whitelisted worlds features
whitelistedWorlds: []
# Keep the default attributes
# Only for 1.19+
keepDefaultAttributes: false
# For new item LET IT FALSE PLS
# Otherwise you can let it true
# if you want to update your old items turn it FALSE
# But be careful the item tags may change
# it can impact shopkeeper or custom craft recipe
# Only for 1.19+
ignoreKeepDefaultAttributesFeature: true
# The usage features
# Increase or Decrease this usage with
# UsageModification in your activators
usageFeatures:
  # The usage of the item
  # -1 = Infinite
  # Increase or Decrease this usage with
  # UsageModification in your activators
  usage: 1
  # Is refreshable clean
  isRefreshableClean: true
  # The usage limit of the item
  # Usage can't be increased above this value
  usageLimit: -1
# The drop features
dropFeatures:
  # Glow drop
  glowDrop: false
  # The color of the glow
  glowDropColor: WHITE
  # Display custom name above the item
  displayNameDrop: false
# The enchantments of the item
enchantments:
  enchantment0:
    enchantment: Channeling
    # The level of the enchantment
    level: 1
  enchantment1:
    enchantment: Impaling
    # The level of the enchantment
    level: 7
  enchantment2:
    enchantment: Loyalty
    # The level of the enchantment
    level: 3
  enchantment3:
    enchantment: Mending
    # The level of the enchantment
    level: 1
  enchantment4:
    enchantment: Unbreaking
    # The level of the enchantment
    level: 5
  enchantment5:
    enchantment: Aqua_affinity
    # The level of the enchantment
    level: 1
  enchantment6:
    enchantment: Depth_Strider
    # The level of the enchantment
    level: 10
  enchantment7:
    enchantment: Respiration
    # The level of the enchantment
    level: 10
# The hiders features
# Hiders to hide:
# Attributes, Enchants, ...
hiders:
  # Hide enchantments
  hideEnchantments: false
  # Hide unbreakable
  hideUnbreakable: false
  # Hide attributes
  hideAttributes: false
  # Hide usage
  hideUsage: true
  # Hide destroys
  hideDestroys: false
  # Hide placed on
  hidePlacedOn: false
  # Hide dye
  hideDye: false
  # Hide Potion effects
  # and banner tags
  hidePotionEffects: false
# The give first join features
giveFirstJoinFeatures:
  # Enable the feature
  giveFirstJoin: false
  # The amount to give
  giveFirstJoinAmount: 1
  # Slot between 0 and 8 includes
  giveFirstJoinSlot: 0
# The restrictions features
restrictions:
  # The item can't be
  # moved of the inventory
  locked-in-inventory: false
# The variables
# Variables are used to store data like kills / deaths ...
variables: {}
# The activators / triggers
activators: {}
# Display conditions in the lore
displayConditions:
  # Add player conditions to determine
  # when the
  playerConditions: {}
  #
  worldConditions: {}
  #
  itemConditions: {}
  # The placeholders conditions
  placeholdersConditions: {}
  # Enable or disable this feature
  enableFeature: false
# The attributes
attributes: {}
это зачарования шлема, они не будут на трезубце работать
разве что накидывать команду выдачи этих эффектов на игрока через активаторы когда он берёт трезубец в руку
 
ВерхНиз