Skript icon indicating copy to clipboard operation
Skript copied to clipboard

Adds interaction entity syntaxes

Open TheMug06 opened this issue 2 months ago • 3 comments

Problem

No syntax currently exists for interaction entities. SkBee used to have it, but it is disabled along with its display syntaxes in favor of Skript's.

Solution

This PR introduces several new syntaxes for each aspect of interaction entities. Includes Height, Width, Responsiveness, Last interaction/attack date/player and a condition for responsiveness.

Testing Completed

Manually tested scripts, all syntax works locally. Can add tests if wanted :D

Supporting Information

None


Completes: none Related: none

TheMug06 avatar Nov 20 '25 00:11 TheMug06

Haven't looked at code in detail, but this is missing last attacker support

See ExprLastInteractionPlayer, same goes for last attack date in ExprLastInteractionDate.

TheMug06 avatar Nov 20 '25 01:11 TheMug06

Haven't looked at code in detail, but this is missing last attacker support

See ExprLastInteractionPlayer, same goes for last attack date in ExprLastInteractionDate.

No, ExprLastAttacker (unless it already works?)

sovdeeth avatar Nov 20 '25 01:11 sovdeeth

Haven't looked at code in detail, but this is missing last attacker support

See ExprLastInteractionPlayer, same goes for last attack date in ExprLastInteractionDate.

No, ExprLastAttacker (unless it already works?)

Interaction extends Entity, so ExprLastAttacker should work fine (?). Though idk if it would due to getLastDamageCause()?

TheMug06 avatar Nov 20 '25 01:11 TheMug06