Old Wiki
Ctrlk
  • Welcome
  • Donation - Support my work
  • Frequently asked questions
  • Compatibility with other plugins
  • Contribute
  • Plugin usage
    • First Install
    • Beginners
    • Resourcepack Hosting
    • Adding Content
      • Item properties
      • Consumable
      • Block
      • Block - advanced
      • Bow
      • Crossbow
      • Fishing rod, shield, bundle
      • Furniture - simple
      • Furniture - complex
      • Fuel
      • Armors
      • Armors (old)
      • Crafting
      • Cooking
      • Anvil Repair
      • Loots
      • Worlds populators (ores)
      • Trees and trees populators
      • Surface populators
      • Cave decorators
      • Font Images
      • Font Images (advanced)
      • Ranks / prefixes
      • Emojis
      • Sounds
      • Music Disc
      • Item Tooltip
      • HUDs
      • GUIs
      • Colored models
      • Other items examples
        • Magic wand
        • Bundle
        • Custom Arrows
      • Fonts
      • Player Emotes
      • Entities
      • Animated titles
      • Custom item NBT
      • Animated 3D Items
    • Languages
    • Commands
    • Permissions
    • Merge Resourcepacks
    • Recipes Menu
    • Resourcepack Prompt Message
    • Text Effects
    • Text Formatting
  • Other
    • Terms Of Service
    • Ask For Help
    • Optimize Minecraft client
    • Resourcepack Protection
    • Custom Player Stats
    • Hide Scoreboard Background and Numbers
    • Loading screen
    • Bulk colorize images
    • Showcases
  • Minecraft Server Hosting
  • Developers
    • Java API
    • Skript API
    • Denizen API
    • Branding
  • OLD
    • Old guides
Powered by GitBook
On this page
  1. Plugin usage
  2. Adding Content
  3. Other items examples

Magic wand

Example addon

https://www.spigotmc.org/resources/addon-magiccraft-itemsadder-addon.88551/www.spigotmc.org

Example of fire magic wand

Example of mana recover crystals

PreviousOther items examplesNextBundle
  • Example addon
  • Example of fire magic wand
  • Example of mana recover crystals
  advanced_magic_wand:
    display_name: "Advanced Magic wand"
    lore: 
      - "&6[ &eSpecial effects &6]"
      - "  &f- &7Adds &6Fire Resistance &7for 10 seconds on &fheld"
      - "  &f- &7Removes &6Fire Resistance &7on &funheld"
      - "  &f- &7Creases an &cexposion &7on &fattack"
      - "  &f- &7Consumes &b1 mana when used"
    permission: magic_wand
    resource:
      material: DIAMOND_SWORD
      generate: true
      textures:
      - item/magic_wand.png
    durability:
      max_custom_durability: 512
    attribute_modifiers:
      mainhand:
        attackDamage: 0.1
    blocked_enchants:
    - ALL
    events_needed_player_stats:
      mana: ">0"
    enchants:
      DAMAGE_ALL: 0
    item_flags:
    - HIDE_ENCHANTS
    events:
      held:
        potion_effect:
          type: FIRE_RESISTANCE
          amplifier: 0
          duration: 200
      unheld:
        remove_potion_effect:
          type: FIRE_RESISTANCE
      drop:
        remove_potion_effect:
          type: FIRE_RESISTANCE
      interact:
        right:
          play_particle:
            name: SPELL_WITCH
          play_sound:
            name: minecraft:entity.ender_dragon.shoot
            volume: 2
            pitch: 1
        left:
          play_particle:
            name: SPELL_WITCH
          play_sound:
            name: minecraft:entity.ender_dragon.shoot
            volume: 2
            pitch: 1
          damage_near_entities:
            entity_groups:
             - HOSTILE
             - PLAYERS
            damage: 4
            range: 7
          decrement_durability:
            amount: 20
          decrement_player_stat:
            name: mana
            amount: 1
        entity:
          target_potion_effect:
            type: GLOWING
            duration: 70
            amplifier: 15
        play_sound:
          name: minecraft:entity.ender_dragon.shoot
          volume: 2
          pitch: 1
      attack:
        play_particle:
          name: SPELL_WITCH
        play_sound:
          name: minecraft:entity.ender_dragon.shoot
          volume: 2
          pitch: 1
        explosion:
          power: 1
          fire: true
          break_blocks: false
        damage_near_entities:
          entity_groups:
            - HOSTILE
            - PLAYERS
          damage: 7
          range: 7
        decrement_durability:
          amount: 20
        decrement_player_stat:
          name: mana
          amount: 1
  mana_recover_crystals:
    display_name: "Mana Recover Crystals"
    permission: mana_recover_crystals
    resource:
      material: IRON_SWORD
      generate: true
      textures:
      - item/mana_recover_crystals.png
    durability:
      max_custom_durability: 5
      custom_durability: 5
      disappear_when_broken: true
    item_flags:
    - HIDE_ATTRIBUTES
    events_cooldown: 100
    events:
      interact:
        right:
          play_particle:
            name: SPELL_WITCH
          play_sound:
            name: minecraft:entity.ender_dragon.shoot
            volume: 2
            pitch: 1
          decrement_durability:
            amount: 1
          increment_player_stat:
            name: mana
            amount: 1
  advanced_mana_recover_crystals:
    display_name: "Advanced Mana Recover Crystals"
    permission: mana_recover_crystals
    resource:
      material: IRON_SWORD
      generate: true
      textures:
      - item/mana_recover_crystals.png
    durability:
      max_custom_durability: 1
      custom_durability: 1
      disappear_when_broken: true
    item_flags:
    - HIDE_ATTRIBUTES
    enchants:
      DAMAGE_ALL: 0
    item_flags:
    - HIDE_ENCHANTS
    events_cooldown: 500
    events:
      interact:
        right:
          play_particle:
            name: SPELL_WITCH
          play_sound:
            name: minecraft:entity.ender_dragon.shoot
            volume: 2
            pitch: 1
          decrement_durability:
            amount: 1
          increment_player_stat:
            name: mana
            amount: 5