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