Swords
How to create custom swords
swords.yml
EventsHere is an example sword
mysword:
enabled: true # use this to enable or disable the item
permission: mysword #crafting permission name (ia.craft.mysword)
model_id: 6 #this is a special property to assign the custom texture
vanilla_type: DIAMOND_SWORD #this is a special property,
# item will have the same durability of this vanilla item and custom texture
# will be applied to this vanilla item ( in this case you must create
# the texture under resourcepack folder "new_diamond_sword")
name: '&fMySword' #display name of the item
lore:
- '&fWow this is my first'
- '&fcustom sword!'
enchants: #enchants to be applied on craft
- FIRE_ASPECT:1 #<enchant name>:<level>
specific_properties:
attack_damage: 6
attack_speed: 2.1
hide_attributes: false
hide_enchants: false
damage_value: 249
events: #events related to this item
left_click: #when user left click
play_particle: ENCHANTMENT_TABLE #plays a specific particle
right_click:
play_particle: ENCHANTMENT_TABLE #plays a specific particle
attack: #when user attacks a mob or player
play_particle: ENCHANTMENT_TABLE #plays a specific particle
play_sound: lightsaber #plays a specific sound (custom or vanilla Minecraft)
recipe: #recipe settings
enabled: true #use this to enable or disable the crafting
pattern: #pattern of the recipe, X is used to indicate empty slot
- XRX
- XRX
- XSX
ingredients: #ingredients match with recipe letters,
#you can use custom items names and vanilla names
R: ruby
S: STICK
Specific properties for swords
Last updated