Files
netease-modsdk-wiki/docs/mcguide/20-玩法开发/11-组装简单玩法/11-内置零件/01-玩家基础属性零件.md
2025-03-17 13:24:39 +08:00

23 lines
917 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: https://nie.res.netease.com/r/pic/20210727/76bfa7be-0be4-4e27-91a3-b5268695f359.png
hard: 入门
time: 20分钟
---
# 玩家基础属性
PlayerBasicPart玩家基础属性零件是一种只能挂接到玩家预设下的内置零件。
![image-20210708144908833](./images/image-20210708144908833.png)
通过挂接玩家基础属性零件,我们能够对所有玩家的基础属性进行相应的修改。
![image-20210708150124638](./images/image-20210708150124638.png)
点击运行进入游戏我们可以看到自身的血量上限有40可以透视到其他玩家的名字。
![image-20210708150107248](./images/image-20210708150107248.png)
>如果需要在游戏中使用脚本调用此零件,可以参考<a href="../../../../mcdocs/3-PresetAPI/预设对象/零件/玩家基础属性零件PlayerBasicPart.html" rel="noopenner"> 玩家基础属性零件的API接口文档 </a>