Files
netease-bedrock-wiki/mconline/10-addon教程/第11章:更强大的自定义生物/课程03.Add-on与Mod协同工作.md
2025-08-25 18:36:29 +08:00

25 lines
545 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
front:
hard: 进阶
time: 5分钟
---
# Add-on与Mod协同工作
#### 作者:境界
当前中国版有多种方式使MOD与附加包协同工作。
①使用GetEntitiesAround可以传入过滤器来筛选出范围内想要的实体。
②使用TriggerCustomEvent可以执行某个生物行为定义的生物事件。
③监听EntityDefinitionsEventServerEvent事件可以监听到游戏内的某个实体触发了某个事件。
④使用GetMolangValue可以在客户端上获取某个实体的query函数值。