Skript version: git-Paper-175
Author: Trickered
Minecraft version: 1.18.1
Code:
no error at all
i was trying to make a special tool that make players life easier but there is a issue when the tool durability is 0 they still can use it, its seem to be unbreakable
have you tried searching docs? : yes
have you tried searching forums? : yes
i really can't think about other way to make it work
Author: Trickered
Minecraft version: 1.18.1
Code:
Code:
function overdrill(b: block, player: player):
break targeted block of {_player} using {_player}'s tool
loop blocks in radius 1.75 around {_b}:
if loop-block is bedrock, barrier, end portal frame, nether portal, end portal or end gateway:
send "<##00aeef>&lEmzenCore: &cThere is unbreakable Blocks in your way!!" to {_player}
stop
break loop-block using {_player}'s tool
damage tool of {_player} by 1
on break:
if player is holding pickaxe:
if "%lore of player's tool%" contains "overdrill":
overdrill(event-block, player)
else:
stop
else:
stop
no error at all
i was trying to make a special tool that make players life easier but there is a issue when the tool durability is 0 they still can use it, its seem to be unbreakable
have you tried searching docs? : yes
have you tried searching forums? : yes
i really can't think about other way to make it work