Jump to content

I need help with skript


ButterflyBullets

Recommended Posts

so basically i've been trying to make it so when you break a custom block you have a low chance of getting a enchanted tool, but i can't figure out the syntax for getting a tool WITH enchants, my smooth brain can't figure it out, can someone pls help. here's what I have

options:
  specialblock: sponge named "&cOP Block"

on break of {@specialblock}:
  cancel event
  set block to air
  chance of 20%:
    give diamond sword to player

i need the sword enchanted

Edited by ButterflyBullets

-----------------------

Skript - 8 months

Minecraft - 8 years                         No Bitches?

-----------------------

Link to comment
Share on other sites

42 minutes ago, ButterflyBullets said:

so basically i've been trying to make it so when you break a custom block you have a low chance of getting a enchanted tool, but i can't figure out the syntax for getting a tool WITH enchants, my smooth brain can't figure it out, can someone pls help. here's what I have

options:
  specialblock: sponge named "&cOP Block"

on break of {@specialblock}:
  cancel event
  set block to air
  chance of 20%:
    give diamond sword to player

i need the sword enchanted

add diamond sword of sharpness 5 to player

i think that will work

Link to comment
Share on other sites

1 minute ago, ButterflyBullets said:

yes ik but I want the sword to be enchanted

glowing no enchants

 add glowing diamond sword to player

with enchants

add diamond sword of sharpness 5, unbreaking 3 to player

or

add diamond sword of (enchant) (level) to player

 

  • Thanks 1
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...