elBukkit / MagicPlugin

A Bukkit plugin for spells, wands and other magic
http://mine.elmakers.com
MIT License
232 stars 152 forks source link

All lores are italic #1338

Open Jazzkuh opened 3 months ago

Jazzkuh commented 3 months ago

When using magic on Paper 1.20.4 all lores are italic by default and there is no way to turn it off.

NathanWolf commented 3 months ago

That is how Minecraft shows item lore. It's generally purple and italic unless specified otherwise.

Unless I'm mis-remembering? I believe this change was made a long while back, like around 1.16

So I think we'd need some global prefix that wand/spell lore uses if you wanted to un-italicize it.

Jazzkuh commented 3 months ago

That is how Minecraft shows item lore. It's generally purple and italic unless specified otherwise.

Unless I'm mis-remembering? I believe this change was made a long while back, like around 1.16

So I think we'd need some global prefix that wand/spell lore uses if you wanted to un-italicize it.

Well the lores are the right color they are just always italic.

Remodactyl commented 3 months ago

you can fix them by putting &r infront of the name first It resets all colour/makeup codes

Jazzkuh commented 3 months ago

you can fix them by putting &r infront of the name first It resets all colour/makeup codes

Tried it, doesnt work

NathanWolf commented 3 months ago

That was going to be my suggestion, too. Can you please share the config that's not working?

Jazzkuh commented 2 months ago

That was going to be my suggestion, too. Can you please share the config that's not working?

Sure:

second_hand_broom:
  inherit: base_bound
  name: '&r&#808080Second Hand Broom'
  mode: cast
  active_spell: broom
  icon: golden_hoe{CustomModelData:18003}
  indestructible: true
  bound: true
  world_border_restricted: true
  cast_on_no_target: false
  cancellable: false
  show_undoable: false
  undoable: false
  reactivate: true
  instructions: false
  effect_color: '808080'
  overrides: "broom.mount_boost 0.5, broom.mount_boost_ticks 120, broom.mount_health 8, broom.steer_speed 0.2, broom.slow_ticks 5, broom.slow_steer_speed 0.1, broom.max_speed 1.25, broom.max_acceleration: 0.015"
  spells:
  - broom
  description: "A second hand broomstick used for flying."
  lore:
  - "&r$description"
  - ""
  - "&r$owner"
  - "&r&8Category: Brooms"