# Solved3x3 Mining Enchantment

#### SoloGamingYT

##### Member
I Can't Get this to work
code_language.skript:
``````#
#==========================
# Custom Enchants v1.0
#
# By SoloGamingYT
#
#

on mine:
if player's tool has lore "&7Miner I":
set {_1} to location of event-block
set {_2} to location of event-block
if player's pitch is between -50 and 50:
add 1 to y-coord of {_1}
subtract 1 from y-coord of {_2}
if player's horizontal facing is west or east:
add 1 to z-coord of {_1}
subtract 1 from z-coord of {_2}
loop blocks within {_1} to {_2}:
skellett break loop-value naturally using player's tool
else if player's horizontal facing is north or south:
add 1 to x-coord of {_1}
subtract 1 from x-coord of {_2}
loop blocks within {_1} to {_2}:
skellett break loop-value naturally using player's tool
else:
add 1 to x-coord of {_1}
add 1 to z-coord of {_1}
subtract 1 from x-coord of {_2}
subtract 1 from z-coord of {_2}
loop blocks within {_1} to {_2}:
skellett break loop-block naturally using player's tool``````

The Error(s):
http://imgur.com/a/Brnjz

code_language.skript:
``lore of %item stack% contains %text%``

that's the correct syntax.

so,

code_language.skript:
``lore of player's tool contains "&7Miner I"``

code_language.skript:
``lore of %item stack% contains %text%``

that's the correct syntax.

so,

code_language.skript:
``lore of player's tool contains "&7Miner I"``
Okay Thanks it worked!

This part should be
code_language.skript:
``````#
#==========================
# Custom Enchants v1.0
#
# By SoloGamingYT
#
#``````

code_language.skript:
``````#
#==========================
# Custom Enchants v1.0
#
# By ChisleLP, but added one line by SoloGamingYT
#
#``````

This part should be

code_language.skript:
``````#
#==========================
# Custom Enchants v1.0
#
# By ChisleLP, but added one line by SoloGamingYT
#
#``````
LOL