Jump to content
  • 0

need help with this skript


Jessica907432

Question

as the title implies i need help with this: 

on death:
   if victim is zombie:
      clear the drops
      set {_drop} to diamond with name ''&bDiamond''
      drop {_drop} at victim's location

for some reason skript doesnt understand the with name ''*bDiamond'' any answers why and how do i fix

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 1

When writing strings in scripts, you have to use the " double quotation mark instead of two ' ' single quotation marks

The correct line would be "&bDiamond" instead of ' ' &bDiamond ' ' (spaced out to make it more obvious)

Edited by MrTibo

[<3]

DMs open - Discord » mrtibo | or send a forum message

Link to comment
Share on other sites

  • 1
Just now, Jessica907432 said:

would this work?

on death:
   if victim is ender dragon:
      clear the drops
      set {_drop} to diamond sword named "&5Aspect Of The End"
      drop {_drop} at victim's location

From here it looks like it will, but you can always ✨Try it and see✨, IF there is an error, Skript will tell you on which line it happened and why 👍

[<3]

DMs open - Discord » mrtibo | or send a forum message

Link to comment
Share on other sites

  • 0
1 minute ago, Jessica907432 said:

but i have a problem

image.png.a45402fb4603d5e2eda490fab1a8c761.png

Because you did exactly the opposite of what you're supposed to do on this one 😅

7 minutes ago, MrTibo said:

When writing strings in scripts, you have to use the " double quotation mark instead of two ' ' single quotation marks

The correct line would be "&bDiamond" instead of ' ' &bDiamond ' ' (spaced out to make it more obvious)

 

Edited by MrTibo

[<3]

DMs open - Discord » mrtibo | or send a forum message

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...