1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved 3x3 Mining Enchantment

Discussion in 'Requests' started by SoloGamingYT, Aug 18, 2017.

  1. SoloGamingYT

    SoloGamingYT Member

    Joined:
    Jul 27, 2017
    Messages:
    22
    Likes Received:
    0
    I Can't Get this to work
    Code (Skript):
    1. #
    2. #==========================
    3. # Custom Enchants v1.0
    4. #
    5. # By SoloGamingYT
    6. #
    7. #
    8.  
    9.  
    10.  
    11. on mine:
    12.     if player's tool has lore "&7Miner I":
    13.         set {_1} to location of event-block
    14.         set {_2} to location of event-block
    15.         if player's pitch is between -50 and 50:
    16.             add 1 to y-coord of {_1}
    17.             subtract 1 from y-coord of {_2}
    18.             if player's horizontal facing is west or east:
    19.                 add 1 to z-coord of {_1}
    20.                 subtract 1 from z-coord of {_2}
    21.                 loop blocks within {_1} to {_2}:
    22.                     skellett break loop-value naturally using player's tool          
    23.             else if player's horizontal facing is north or south:
    24.                 add 1 to x-coord of {_1}
    25.                 subtract 1 from x-coord of {_2}
    26.                 loop blocks within {_1} to {_2}:
    27.                     skellett break loop-value naturally using player's tool
    28.         else:
    29.             add 1 to x-coord of {_1}
    30.             add 1 to z-coord of {_1}
    31.             subtract 1 from x-coord of {_2}
    32.             subtract 1 from z-coord of {_2}
    33.             loop blocks within {_1} to {_2}:
    34.                 skellett break loop-block naturally using player's tool
    35.  
    The Error(s):
    http://imgur.com/a/Brnjz
     
  2. Best Answer:
    Post #2 by ShaneBee, Aug 18, 2017
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Code (Skript):
    1. lore of %item stack% contains %text%
    that's the correct syntax.

    so,

    Code (Skript):
    1. lore of player's tool contains "&7Miner I"
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Okay Thanks it worked!
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    This part should be
    Code (Skript):
    1. #
    2. #==========================
    3. # Custom Enchants v1.0
    4. #
    5. # By ChisleLP, but added one line by SoloGamingYT
    6. #
    7. #
    8.  
     
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    LOL
     

Share This Page

Loading...