
你是正在寻找新方法制作有趣实体的数据包开发者吗?
那就别再找了,因为 Better Mannequins 来了!它可以为你的项目中的 新型假人实体 注入一丝生机!
这是该数据包的首个版本,但我们为此提供了一个全新功能,可满足你所有数据包开发需求!
在此版本中,你可以使用以下命令召唤一个 Better Mannequin(优质假人):
"/function mannequin_controls:summon_mannequin {type:(类型标识符,用于定义此实体的用途), name:(假人的名称), profile:(如果没有配置文件,请填入 '{}';如果有,则与普通假人的配置文件格式相同), speed:(假人的移动速度)}"
或者,去掉所有说明后,它大致如下所示:
"/function mannequin_controls:summon_mannequin {type:"", name:"", profile:{}, speed:0}"
当你召唤它时,它将几乎没有任何动作。要实际操控假人,你需要使用 "/function mannequin_controls:step" 命令。执行后,你将看到假人迈出第一步。如果你想让它移动到特定位置,需要使用 "/rotate" 命令调整其朝向,使其指向目标地点。
现在你已经了解了假人的工作原理和移动方式,你可以开始开发自己的 NPC、敌人、特效以及许多其他内容了。
如果你想预览假人能做什么,可以召唤已内置的 Robot(机器人)!
要召唤机器人,请使用以下命令:
"/function utils:summon_robot"
该实体将面向最近的玩家并开始向其奔跑。当它靠近到一定程度时,会对玩家造成伤害,因此请务必保持距离!
快速提示!
补充说明
你完全可以在你的数据包中使用本模组,并将其上传至 Modrinth。但如果你在本数据包中使用它,我 非常 希望你能在你的数据包描述中注明我的名字并提供相关链接!
需要视频教程帮助?请看这里:

Are you a datapack dev looking for a new way to make interesting entities?
Then look no further because Here comes Better mannequins A way for you to give the New Mannequin Entity a little spark of life for your project!
This is currently the first version of the datapack, but for it we have a brand new feature that you can use for all your datapack needs!
In this version you can summon a Better Mannequin by using this command:
"/function mannequin_controls:summon_mannequin {type:(Type is an Identifier for what this entity is used for), name:(The name for your mannequin), profile:(If you don't have a profile to use just put '{}' but if you do it's the same as the normal mannequins profile), speed:(This is speed at which your mannequin can move)}"
Or, without all the explanations it should look a little something like this:
"/function mannequin_controls:summon_mannequin {type:"", name:"", profile:{}, speed:0}"
When you summon it, it will be doing almost nothing, so to actually control the mannequin you need to use the "/function mannequin_controls:step" command and when this happens you should see that the mannequin will take its very first steps. If you want to it move to a specific spot you need to rotate it using the "/rotate", command and point it towards its destination
Now that you know how the mannequin works and how it moves you can start developing your own NPC's, enemies, effects, and plenty of other things.
If you want a preview of what a mannequin can do then summon the already implemented Robot!
to summon the robot use this command:
"/function utils:summon_robot"
This entity will look towards the nearest player and start running towards them, and when it gets too close it will damage them, so make sure to keep your distance!
Quick Tips!
-
Make sure that when you are using the step function, you are running it AS THE MANNEQUIN otherwise it won't work
-
If the mannequin isn't going where you want it to double check if you're rotating it the right way
-
In my opinion, it is best to have the speed set to a value of 15
Extra Notes
It is perfectly okay for you to use this in your data pack and upload it to Moderinth, but if you are using this in the datapack, I would heavily appreciate it if you could credit me in your datapack description and leave a link!
Want a Video to help? Watch This:
评论 0
登录后参与评分
还没有评论,来抢沙发吧