SamsCreations
SamsCreations

Gear works like fish: add an entry to a file, add a picture if you want, run /fishing reload. Effects are listed on Rods, Baits, Hooks & Lines.

Rod

gear/rods.yml:

storm_rod:
  level: 12                      # fishing level needed
  damage: 9                      # against sea creatures
  item:
    name: "<#9FD8FF>Storm Rod"
    lore: ["<gray>Made for the worst weather."]
  effects:
    rarity: { gold: 1.2, diamond: 1.3 }
    bite-time: 0.85

Pictures: textures/rod/storm_rod.png and rod/storm_rod_cast.png (optional).

Bait

gear/baits.yml:

shrimp:
  item:
    material: STRING
    name: "<#FF9C8A>Shrimp"
  effects:
    rarity: { gold: 1.4 }

Hook and line

gear/hooks.yml and gear/lines.yml:

barbed_hook:
  uses: 40                       # catches before it breaks
  item:
    name: "<#D9C9A8>Barbed Hook"
  effects:
    difficulty: -0.1

Enchant

gear/enchants.yml:

enchants:
  storm_caller:
    name: "<#9FD8FF>Storm Caller"
    max-level: 3
    effects-per-level:
      rarity: { gold: 1.1 }

More on Rod Enchants.

Totem

gear/totems.yml:

totems:
  storm_totem:
    item:
      material: LIGHTNING_ROD
      name: "<#9FD8FF>Storm Totem"
    radius: 10
    duration: 180                # seconds
    color: "#9FD8FF"
    effects:
      rarity: { diamond: 1.3 }

Upgradable totems and hotspots are on Totems.

Giving it

/fishing give <player> rod storm_rod
/fishing give <player> bait shrimp 16
/fishing give <player> enchant storm_caller 2
/fishing give <player> totem storm_totem

A fish that needs your gear

storm_eel:
  rarity: mythic
  item: { material: COD, name: "<#9FD8FF>Storm Eel" }
  size: "60-140"
  when:
    rods: [storm_rod]
    baits: [shrimp]
    weather: [thunder]

rods: [vanilla] means a plain rod, baits: [none] means no bait.

Items from other plugins

Gear can be an ItemsAdder, Nexo, MythicMobs, EcoItems or MMOItems item: item: { source: "nexo:storm_rod" }.