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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help with blacksmith job

Discussion in 'Skript' started by Alexor, Oct 4, 2020.

  1. Alexor

    Alexor Member

    Joined:
    Oct 4, 2020
    Messages:
    1
    Likes Received:
    0
    Hi, here is my problem. I was writting this skript for making jobs for my server. I wanted to limit smelting ores, leaving it only to blacksmiths, but it doesn't work. This is my skript:

    on ore smelting:
    if ore slot of the event-block is iron ore:
    if {pl1.%player%} is true:
    if {blacksmith.%player%} is false:
    cancel event
    send "&c&aNice try, call a blacksmith the next time" to player
    else:
    stop

    Sorry for bad english and thanks for help
     
  2. Dogloverblue17

    Joined:
    Sep 2, 2020
    Messages:
    4
    Likes Received:
    0
    Your problem appears to be just indentation errors, with a couple spaces, your problem Should be fixed.
    Code (Text):
    1. on ore smelting:
    2.   if ore slot of the event-block is iron ore:
    3.     if {pl1.%player%} is true:
    4.       if {blacksmith.%player%} is false:
    5.         cancel event
    6.         send "&c&aNice try, call a blacksmith the next time" to player
    7.   else:
    8.     cancel event
    sorry in advance if im wrong, this is my first time replying on the forums
     
  3. Indoria

    Indoria Member

    Joined:
    Oct 25, 2020
    Messages:
    2
    Likes Received:
    0
    Dogloverblue did it right.

    + You could add a lil Joke into it. Remove 1 of the Iron after trying so it looks like the Smelting failed and it broke. idk cool idea
     
    • Funny Funny x 2
  4. Dogloverblue17

    Joined:
    Sep 2, 2020
    Messages:
    4
    Likes Received:
    0
    To be clear Alexor, this is just for fun, it dosen't mean anything. Sure
    Sure Indoria, why not
    Code (Text):
    1. on ore smelting:
    2.   if ore slot of the event-block is iron ore:
    3.     if {pl1.%player%} is true:
    4.       if {blacksmith.%player%} is false:
    5.         cancel event
    6.         send "&c&aNice try, call a blacksmith the next time" to player
    7.         wait 3 seconds
    8.         send "&cOh Uh!, the Ore was destroyed because you are inexperienced as a Blacksmith!" to player
    9.         delete event-item
    10. time" to player
    11.   else:
    12.     cancel event
    Just a fun Code, Why Not
     
Loading...