KubeJS

KubeJS

69M Downloads

'GamestageEvents.stageAdded' only being triggered with command

mawimmer opened this issue ยท 1 comments

commented

Minecraft Version

1.20.1

KubeJS Version

2001.6.4-build.138

Rhino Version

2001.2.2-build.18

Architectury Version

9.2.14

Forge/Fabric Version

Forge 47.2.19

Describe your issue

GameStageEvents.stageAdded(event=>{}) doesn't get triggered, if a stage gets added in another Event via 'event.player.stages.add()' in scripts.

Nor with stages added via FTBQuests-Completed Reward "Stage".
Also not getting triggered with the command '/kubejs stages add playername stage'.

It does only get triggered, if stage added via command '/gamestage add playername stage'.

Crash report/logs

No response

commented

if (!event.entity.stages.has(stage_name)) { event.player.stages.add(stage_name)}

this code does add the stage, but eventlistener not triggering