Item System

Enable

enable: false

Nick is what to show in fish finder and titles

nick: 'Example Fish'

Should it be displayed in fish finder?

show-in-fishfinder: false

Is this loot only available when player fish in lava

in-lava: false

The weight(relative chance) of getting this fish

weight: 10

Fish group, it's optional and unlimited

group: normal

The score to get in competition

score: 10

Specify the bar. If not specified, it will be random

layout:
- bar_1

Fishing game difficulty

'1' represents the pointer moves every 1 tick

'7' represents the pointer moves 7 pixels each time

difficulty: 1-7
#or
difficulty:
  - 1-7
  - 1-6
  - 1-5

How much time can a player spend on each bite(ms)

time: 5000

Basic elements of an item, it's recommened to use MiniMessage format

https://docs.adventure.kyori.net/minimessage/format.html

material: COD
display:
  name: '<rainbow>✖Example Rainbow Fish✖</rainbow>'
  lore:
     - '<gray>This is a <font:uniform>rainbow fish!'
     - '<gray>It is {size}cm long!'
custom-model-data: 1
# Only works when material is player_head
head64: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNWRlYTkyZjhmZWZkMGMwMDE3MTliNDQ1MjUxMjAxNmFiN2Q1NzkzODg0Nzg5MDEyYjU1NTExYWYzYzdkMDMzYiJ9fX0=

Is the item unbreakable

unbreakable: false

Optional size, would be useful if want to make each fish unique

size: 10~200

Optional price, would be useful to be used in price formula

price:
  base: 50
  bonus: 0.3

Custom NBT tags

(Int) (Byte) (String) (Float) (String) (Double) (Short) (Long) (UUID) (Boolean) (IntArray) (ByteArray)

CustomNBT system provides unlimited compatibility with other plugins

If you are not sure about the NBT tag. You can use command '/customfishing import xxx'

nbt:
  itemsadder:
    namespace: '(String) momirealms'
    id: '(String) rainbow_fish'

Available events: success/failure/hook

Available actions: message/command/exp/mending/skill-xp/sound

action:
  success:
    message:
      - 'You got a {loot} lol!'
    command:
      - 'say Success command example!'
    exp: 10  # Exp directly go to player's level
    mending: 5 # Exp that would apply to mending
    skill-xp: 100 # Fishing Skill xp (requires skill plugin hook)
    sound: minecraft:ambient.basalt_deltas.loop

Enchantments on the item

enchantments:
  minecraft:sharpness: 1
  minecraft:flame: 1

Random Durability (only available on damageable items)

random-durability: false

Random Enchantments

Higher level enchantment should be below the lower ones

random-enchantments:
    enchantment_1:
      enchant: minecraft:sharpness
      chance: 0.3
      level: 1
    enchantment_2:
      enchant: minecraft:sharpness
      chance: 0.2
      level: 2
    enchantment_3:
      enchant: minecraft:sharpness
      chance: 0.1
      level: 3
    enchantment_4:
      enchant: minecraft:flame
      chance: 0.5
      level: 1
    enchantment_5:
      enchant: minecraft:unbreaking
      chance: 0.2
      level: 1
    enchantment_6:
      enchant: minecraft:unbreaking
      chance: 0.2
      level: 2

Item flags

item_flags:
  - HIDE_ENCHANTS
# - HIDE_ATTRIBUTES
# - HIDE_DESTROYS
# - HIDE_DYE
# - HIDE_PLACED_ON
# - HIDE_UNBREAKABLE
# - HIDE_POTION_EFFECTS

Last updated