Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: onAttackEntity 监听事件不起做用(失效) #192

Open
Atrium4641 opened this issue Dec 9, 2024 · 0 comments
Open

[Bug]: onAttackEntity 监听事件不起做用(失效) #192

Atrium4641 opened this issue Dec 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Atrium4641
Copy link

Atrium4641 commented Dec 9, 2024

Describe the bug

onAttackEntity 监听事件不起做用(失效)

mc.listen("onAttackEntity", ( /**@type {LLSE_Player} 攻击实体的玩家对象*/player, /**@type {LLSE_Entity} 被攻击的实体对象*/entity, /**@type {number} 攻击造成的伤害数值?*/damage ) => { logger.warn(entity.type); logger.warn(player.realName); } )

0476bdc4-c0a6-470f-8457-0cb2c8acd048

攻击羊或玩家,控制台没有打印任何信息

To Reproduce

onAttackEntity 监听事件不起做用(失效)

Expected behavior

onAttackEntity 监听事件正常工作

Screenshots

No response

Platform

Win10

BDS Version

1.21.3

LeviLamina Version

0.13.5

LegacyScriptEngine Version

0.8.20

Additional context

No response

@Atrium4641 Atrium4641 added the bug Something isn't working label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant