Help with blacksmith job

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Alexor

Member
Oct 4, 2020
1
0
1
23
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
 
Your problem appears to be just indentation errors, with a couple spaces, your problem Should be fixed.
Code:
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:
    cancel event

sorry in advance if im wrong, this is my first time replying on the forums
 
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
 
To be clear Alexor, this is just for fun, it dosen't mean anything. Sure
+ 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
Sure Indoria, why not
Code:
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
        wait 3 seconds
        send "&cOh Uh!, the Ore was destroyed because you are inexperienced as a Blacksmith!" to player
        delete event-item
time" to player
  else:
    cancel event
Just a fun Code, Why Not
 
Status
Not open for further replies.