Projectiles/Arrows - Adding Lore/NBT/Tags/Metadata

  • Thread starter Deleted member 5254
  • Start date
  • 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 community!

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

Deleted member 5254

Hello

I am working on creating a script for explosive arrows.
I have a lot of it ironed out, but now I'm curious how i can detect lore/nbt/tags/meta of an arrow.
The problem is, I'm trying to write it, so you need a specific arrow to show!
Example: A player crafts or buys an explosive arrow, and shoots that!
Rather than an explosive bow, that could potentially last forever!

But I'm finding the problem to be, when writing in the shooting part, it won't detect any data from the arrow itself.

Here is what I have so far as just a small example of what I'm working on.

code_language.skript:
on projectile hit:
    projectile is an arrow
    if lore of projectile contains "boom":
        create an explosion of force 5 at location of projectile

But when i run this i get the following error

[16:20:00 INFO]: [Skript] Reloading arrow.sk...
[16:20:00 ERROR]: can't understand this condition: 'lore of projectile contains "boom"' (arrow.sk, line 5: if lore of projectile contains "boom":')
[16:20:00 INFO]: [Skript] Encountered 1 error while reloading arrow.sk!



I want to make sure player's need SPECIFIC arrows, so they can't just blow up everything using standard arrows.

Thanks for the help!
 
Last edited by a moderator:
Status
Not open for further replies.