mojira.dev
MC-269225

"bee_nest_destroyed" don't trigger while in creative

How to Reproduce

  1. load the datapack from attachment

  2. break a bee nest/beehive in survival -> say hi

  3. break a bee nest/beehive in creative -> nothing happen

Linked issues

Attachments

Comments 1

Can confirm, but might be intended. The issue is that CriteriaTriggers.BEE_NEST_DESTROYED.trigger(...) is called from BeehiveBlock#playerDestroy, which is only called from ServerPlayerGameMode#destroyBlock when the game mode is not creative:

public boolean destroyBlock(BlockPos pos) {
    //...
    if (this.isCreative()) {
        return true;
    } else {
        // ..
        block.playerDestroy(...)
    }
}

ccJerrycc

(Unassigned)

Confirmed

Platform

Normal

Advancements, Data Packs

advancement-trigger

1.20.4

Retrieved