Jump to content

Drill skript not working


Darth1013

Recommended Posts

on click:
 player is holding a golden shovel named "&6&lDrill":
  if block is bedrock:
  send "&cYou cant mine this! its unbreakable!"  
  cancel event
  else:
  give player block
  set block to air
  Remove 2 from Player's held item's durability

 

my terrible skript that doeesnt work, hoping one of you guys could help fix it! 😄

Link to comment
Share on other sites

on leftclick:
	if player's is tool is golden shovel named "&6&lDrill":
  		if event-block is bedrock:
		send "&cYou cant mine this! its unbreakable!" to player
		cancel event
	else:
		give player 1 event-block
		set event-block to air
		remove 2 from player's held item's durability

try this

 

imgonline-com-ua-resize-CNNkL1drx5M-removebg-preview.png.d6a8ae8b5eb862005fb056c21f934200.png

Link to comment
Share on other sites

11 minutes ago, Lapzzo said:
on leftclick:
	if player's is tool is golden shovel named "&6&lDrill":
  		if event-block is bedrock:
		send "&cYou cant mine this! its unbreakable!" to player
		cancel event
	else:
		give player 1 event-block
		set event-block to air
		remove 2 from player's held item's durability

try this

this kinda broken ngl lol

 

btw you dont need event-block

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...