网易我的世界论坛

标题: 关于"minecraft:follow_range" [打印本页]

作者: 黎明部落工作室    时间: 2020-3-2 12:48
标题: 关于"minecraft:follow_range"
我模仿海豚的"minecraft:follow_range"组件,想实现让我自定义的生物会跟随玩家,但是并没有成功,要注意什么吗?新手上路太嫩了!
作者: Minehero-境界    时间: 2020-3-2 14:11
follow_range只是跟随目标的距离可以到多大,它可以是一个生物目标、一个坐标点,但不是将某个生物作为它的跟随目标的行为
一般跟随玩家的方法是可以把它作为驯服生物后用跟随主人的行为
其他的还有比如将玩家设置为攻击目标但将攻击伤害设置为0,这样它也会不停地跟着某个在仇恨范围内的玩家
作者: 黎明部落工作室    时间: 2020-3-2 19:27
谢谢啦
作者: sevenstars    时间: 2020-3-4 18:43
minecraft:behavior.follow_owner
Allows the mob to follow the player that owns them.
Parameters
Name        Type        Default Value        Description
speed_multiplier        Decimal        1.0        Movement speed multiplier of the mob when using this AI Goal
start_distance        Decimal        10.0        The distance in blocks that the owner can be away from this mob before it starts following it
stop_distance        Decimal        2.0        The distance in blocks this mob will stop from its owner while following it




欢迎光临 网易我的世界论坛 (http://mc.netease.com/) Powered by Discuz! X3.3