skript-reflect icon indicating copy to clipboard operation
skript-reflect copied to clipboard

Add accepts change condition

Open Pikachu920 opened this issue 1 year ago • 2 comments

Aims to add an easy to to see if an expression accepts a changemode

Pikachu920 avatar Feb 04 '24 20:02 Pikachu920

let me know if I'm over simplifying this but couldn't we just add ChangeMode as a enum in skript-reflect and do something like

%objects% supports %changemode% changer
if slot supports delete changer
if player's tool supports set changer

might be better to suffix modes with changer by default since idk if it'll conflict with related effects

since expressions and likely classinfos have getAcceptedChangeModes which returns a map it should be as simple as a null check

Fusezion avatar Feb 04 '24 20:02 Fusezion

getAcceptedChangeModes

getAcceptedChangeModes is intended for documentation purposes, not real logic

Pikachu920 avatar Feb 04 '24 21:02 Pikachu920