Skript icon indicating copy to clipboard operation
Skript copied to clipboard

Add entity shoot bow event

Open TheLimeGlass opened this issue 1 year ago • 4 comments

Description

Adds all the details from https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityShootBowEvent.html

Allows for nice setting of the projectile which is not possible to do in on shoot

on a player shooting a bow:
	set the shot projectile to a primed tnt
	message "%shot projectile%"

Properly applied entities so that message will not trigger multiple command sender issue while still providing all the event entities.


Target Minecraft Versions: any Requirements: Paper 1.13+ or Spigot 1.19+ Related Issues: https://github.com/SkriptLang/Skript/issues/6403

TheLimeGlass avatar Feb 05 '24 21:02 TheLimeGlass

This should not be using the last spawned entity expression. That expression is clearly for things created through Skript, not for things that normally happen in the world.

Agree, that could cause unepexcted results if that event is triggered and a shoot effect was used

AyhamAl-Ali avatar Mar 29 '24 15:03 AyhamAl-Ali

This should not be using the last spawned entity expression. That expression is clearly for things created through Skript, not for things that normally happen in the world.

You would have conflicting syntaxes. last shot already exists before this pull request.

TheLimeGlass avatar Mar 29 '24 23:03 TheLimeGlass

This should not be using the last spawned entity expression. That expression is clearly for things created through Skript, not for things that normally happen in the world.

You would have conflicting syntaxes. last shot already exists before this pull request.

The solution is not to change how the last spawned expression works. You'll have to come up with a syntax that doesn't conflict and doesn't drastically change the meaning of the last spawned expression.

sovdeeth avatar Mar 29 '24 23:03 sovdeeth

The solution is not to change how the last spawned expression works. You'll have to come up with a syntax that doesn't conflict and doesn't drastically change the meaning of the last spawned expression.

No. I still disagree when the other spawned entity types are caused from Skript related effects. Fireworks, lighting and dropped item. It's like saying apples can't fall from trees when oranges can.

TheLimeGlass avatar May 10 '24 19:05 TheLimeGlass