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

Discussion in 'Requests' started by Selvati, Aug 7, 2017.

  1. Selvati

    Selvati Active Member

    Joined:
    Jun 26, 2017
    Messages:
    190
    Likes Received:
    10
    I'd like someone to make a skript for me that when a player mines with a diamond pickaxe, it mines a 3x3x1 depending on what direction they're looking too, if they're look horizontal it breaks 3x3x1 if they're looking vertical it breaks 3x1x3 and all blocks drop the right things when they break. Thanks!

     
  2. Best Answer:
    Post #7 by ShaneBee, Aug 15, 2017
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    I remember having a one that was made by bi0
    It worked really well.

    I have lost the file, but maybe someone can help you?
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Someone help my mans
     
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Lol thanks❤️
     
  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    on mine:
    destory all blocks in 3x3 around center block but not like in a 3d plane but a 2nd plane, if possible, thanks xd skript ur da best.
     
  8. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Yeah. please do it. Look very simple. but coding... its hard... i have already try. but no ideas. >-<

    ========================


    Soooo... with Pickachu little hint i could do it! Well... There you go <3

    Code (Skript):
    1. on mine:
    2.     set {_1} to location of event-block
    3.     set {_2} to location of event-block
    4.     if player's pitch is between -50 and 50:
    5.         add 1 to y-coord of {_1}
    6.         subtract 1 from y-coord of {_2}
    7.         if player's horizontal facing is west or east:
    8.             add 1 to z-coord of {_1}
    9.             subtract 1 from z-coord of {_2}
    10.             loop blocks within {_1} to {_2}:
    11.                 skellett break loop-value naturally using player's tool            
    12.         else if player's horizontal facing is north or south:
    13.             add 1 to x-coord of {_1}
    14.             subtract 1 from x-coord of {_2}
    15.             loop blocks within {_1} to {_2}:
    16.                 skellett break loop-value naturally using player's tool
    17.     else:
    18.         add 1 to x-coord of {_1}
    19.         add 1 to z-coord of {_1}
    20.         subtract 1 from x-coord of {_2}
    21.         subtract 1 from z-coord of {_2}
    22.         loop blocks within {_1} to {_2}:
    23.             skellett break loop-block naturally using player's tool

    Requried:

    Skelett. And skript :'D Nothing more i think

    P.s i forget @Farid He helping me too little. :'D
     
  9. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    dude will this work?
    Code (Skript):
    1. on mine:
    2.     if players tool has lore "&7Miner I":
    3.         set {_1} to location of event-block
    4.         set {_2} to location of event-block
    5.         if player's pitch is between -50 and 50:
    6.             add 1 to y-coord of {_1}
    7.             subtract 1 from y-coord of {_2}
    8.             if player's horizontal facing is west or east:
    9.                 add 1 to z-coord of {_1}
    10.                 subtract 1 from z-coord of {_2}
    11.                 loop blocks within {_1} to {_2}:
    12.                     skellett break loop-value naturally using player's tool          
    13.             else if player's horizontal facing is north or south:
    14.                 add 1 to x-coord of {_1}
    15.                 subtract 1 from x-coord of {_2}
    16.                 loop blocks within {_1} to {_2}:
    17.                     skellett break loop-value naturally using player's tool
    18.         else:
    19.             add 1 to x-coord of {_1}
    20.             add 1 to z-coord of {_1}
    21.             subtract 1 from x-coord of {_2}
    22.             subtract 1 from z-coord of {_2}
    23.             loop blocks within {_1} to {_2}:
    24.                 skellett break loop-block naturally using player's tool
    25.  
     
  10. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Did you changed anythings? Mine code works very fine.
     
  11. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    I
    I Just added
    Code (Skript):
    1.  
    2.     if players tool has lore "&7Miner I":
    3.    
     
  12. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Sure, just check it out.
     
  13. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Ok!
    :emoji_grinning:
    --- Double Post Merged, Aug 18, 2017, Original Post Date: Aug 18, 2017 ---
    doesen't work i get these errors [​IMG] http://imgur.com/a/Brnjz
     
  14. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Then create a self Thread.
     
  15. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Never met bigger retards in my life.

    If lore of player's held item is "Miner":
     

Share This Page

Loading...