HibiscusMC / HMCCosmetics

The all-in-one cosmetics solution created by HibiscusMC Team, for HibiscusMC.
https://docs.hibiscusmc.com/
GNU General Public License v3.0
115 stars 50 forks source link

Add support for Denizen items #99

Closed mergu closed 1 year ago

mergu commented 1 year ago

Select the option(s) that best describes this PR:

Please describe the changes this PR makes and why it should be merged:

Denizen is a powerful scripting language primarily used for Citizens NPCs, but also has a large community of users who use it for general-purpose scripting. This PR adds support for Denizen scripted items.

Tested via:

# Denizen script
custom_item:
  type: item
  material: blaze_rod
  display name: <&gradient[from=#00ff00;to=#0000ff]>My custom item
  mechanisms:
    custom_model_data: 1
  lore:
    - Some lore, <util.time_now.format>
# Cosmetic linked to script
custom_item:
  slot: OFFHAND
  permission: "hmccosmetics.custom_item"
  item:
    material: denizen:custom_item

image

Check that:

mergu commented 1 year ago

This closes https://github.com/HibiscusMC/HMCCosmetics/issues/98

Craftinators commented 1 year ago

Looks good ❤️