Purpur icon indicating copy to clipboard operation
Purpur copied to clipboard

player_interacted_with_entity advancement trigger does not work on entities

Open kruthers opened this issue 2 years ago • 3 comments

Timings link

No response

Expected behavior

The advancement to trigger when you right click an entity

Observed/Actual behavior

Nothing happens, the advancement fails to trigger

Steps/models to reproduce

  1. Summon an non-ai villager (ai and non-ai is the same): /summon minecraft:villager ~ ~ ~ {NoAI:1}
  2. Download the following datapack: testing.zip
  3. Right click on the villager and you should see 2 chat message when the advancement triggers.

Purpur version

This server is running Purpur version git-Purpur-1336 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: c82d29a on ver/1.17.1)

Agreements

  • [X] I am running the latest version of Purpur available from https://purpur.pl3x.net/downloads.
  • [X] I have searched for and ensured there isn't already an open issue regarding this.
  • [X] My version of Minecraft is supported by Purpur.

Other

No response

kruthers avatar Aug 26 '21 21:08 kruthers

I have done some more invistegation, the bug is caused by the ridable pach, when you are not able to ride a entity, the event is not getting passed, causing the advancement trigger to not be called. If you enable ridable entities and give yourself permissions to ride it, when you click it the advancement is now called.

kruthers avatar Aug 28 '21 10:08 kruthers

I see the issue here. The criterion only triggers if the interaction was consumed. My ridables patch returns either success or pass, never consume. I'll have to add the consume in where it's supposed to be, but this will take some time.

BillyGalbreath avatar Aug 29 '21 12:08 BillyGalbreath

Any update on this issue? @BillyGalbreath

InsaanNotFound avatar Jul 03 '22 15:07 InsaanNotFound