D
Deleted member 5254
I'm getting these two errors:
Code
Code
code_language.skript:
on skript load:
#enchantments
#singe enchantment
register a new custom enchantment with id name "Singe"
set {_enchantment.1} to "Singe" parsed as custom enchantment
set max level of {_enchantment.1} to 1
set rarity of {_enchantment.1} to 5
set accepted items for {_enchantment.1} to "Pickaxes", "Axes" and "Shovels"
set lore name of {_enchantment.1} to "Singe I"
set enabled for {_enchantment.1} to true
set conflicts for {_enchantment.1} to silk_touch and fortune
#decapatator
register a new custom enchantment with id name "Decapator"
set {_enchantment.2} to "Decapator" parsed as custom enchantment
set max level of {_enchantment.2} to 1
set rarity of {_enchantment.2} to 5
set accepted items for {_enchantment.2} to "Swords" and "Bows"
set lore name of {_enchantment.2} to "Decapator I"
set enabled for {_enchantment.2} to true
#set conflicts for {_enchantment.2} to looting
reload all custom enchantments
on mine of iron ore:
if player's held tool has custom enchantment Singe:
cancel event
set event-block to chest
add 1 iron ingot to event-block
set event-block to air
add 1 to the data value of player's held tool
command /reloadenchantments:
trigger:
reload all custom enchantments
Last edited by a moderator: