Hello, im making a custom enchantment that will mine a 3x3, 3x4 and 3x5 area. The 3x3 works fine, but the 3x4 is acting a little goofy. When i mine, it will break the block below the event-block, but it wont mine the top blocks next to the event block. Ill post a gif on what it does.
GIF:
https://gyazo.com/9ea4f8ecaff27d1a94b8d83fa51105e9
Skript version:
2.4.1
Server Version:
1.14.4 Paper Spigot
Code:
Thanks!
~Matt
GIF:
https://gyazo.com/9ea4f8ecaff27d1a94b8d83fa51105e9
Skript version:
2.4.1
Server Version:
1.14.4 Paper Spigot
Code:
Code:
on mine:
set {_lore::*} to lore of player's tool
loop {_lore::*}:
if "%loop-value%" contains "&bDrill 1":
set {_location} to location of event-block
remove 1 from y coord of {_location}
loop all blocks around {_location} in radius 1.8:
if loop-block is not bedrock:
give player loop-blocks
set loop-block to air
else if "%loop-value%" contains "&bDrill 2":
set {_location} to location of event-block
remove 2 from y coord of {_location}
loop all blocks around {_location} in radius 1.8:
if loop-block is not bedrock:
give player loop-blocks
set loop-block to air
Thanks!
~Matt