Lazy Pets
你的宠物终于可以躺下了!
你留下的坐着的宠物狗和猫会感到无聊并躺下。
功能特性
- 坐着的宠物会躺下:在不受打扰 10 秒后(你可以更改此时间)。
- 动画效果:躺下和起身的动作之间平滑过渡。
- 它们也会站起来。
右键点击或与它们互动可以让它们重新站起来,或者你可以设置当玩家靠近时它们自动起身。
- 回家看到正在睡觉的宠物。如果你离开世界时宠物是坐着的,当你加入世界时它们将处于躺卧状态。
- 也适用于装备盔甲的情况! 所有部件都能正常移动。
- 仅客户端:你无需在服务器上安装此模组。
配置
首次启动游戏时会创建 config/lazypets.json 文件。编辑该文件并重启游戏即可生效。
| 设置项 |
默认值 |
说明 |
secondsBeforeLying |
10.0 |
躺下前的等待时间(0-3600 秒)。 |
lieDownTicks |
30 |
躺下动画的时长(以刻为单位,20 刻 = 1 秒)。 |
getUpTicks |
16 |
起身动画的时长(以刻为单位)。 |
wolves |
true |
允许狼躺下。 |
cats |
true |
允许猫躺下。 |
startLyingWhenLoaded |
true |
加载时已经坐着的宠物会直接开始躺下。 |
wakeOnInteract |
true |
右键点击宠物使其起身。 |
wakeOnHurt |
true |
受到伤害使宠物起身。 |
wakeWhenOwnerWithin |
0.0 |
以方块为单位的距离范围,当主人靠近时宠物起身。设为 0 表示关闭。 |
常见问题
服务器需要安装吗? 不需要。仅限客户端使用。
为什么我朋友的狗比我晚几秒才躺下? 每个玩家的客户端都维护自己的计时器。这仅影响视觉效果。
鹦鹉和马呢? 目前只支持狼和猫。鹦鹉也可以坐下但不会躺下,而马无法被命令坐下。如果你想让我添加其他宠物的支持,请在我的 Discord 服务器中告知。
致谢
灵感来源于 iChun 制作的 Let Sleeping Dogs Lie。决定继续开发并加入了猫的支持。
采用 MIT 许可证,由 InatorCreator 发布。
Lazy Pets
Your pets can finally lay down!
Pet dogs and cats that you leave sitting get bored and lie down.
Features
- Sitting pets lie down after 10 seconds undisturbed (you can change the time).
- Animated Lying down and getting up both ease smoothly between the poses.
- They get up too.
Right click or interact with them to make them stand up again, or you can make it so when you come close, they get up too.
- Come home to sleeping pets. Your pets will be lying down when you join a world if they were sitting when you left.
- Works with armor too! everything moves properly.
- Client side You do not need to install this on a server.
Configuration
config/lazypets.json is created the first time you launch. Edit it and restart the game.
| Setting |
Default |
What it does |
secondsBeforeLying |
10.0 |
Time to lay down (0-3600). |
lieDownTicks |
30 |
Animation length in ticks (20 ticks = 1 second). |
getUpTicks |
16 |
Length of the get-up animation in ticks. |
wolves |
true |
Wolves lie down. |
cats |
true |
Cats lie down. |
startLyingWhenLoaded |
true |
Pets already sitting when they load in start out lying down. |
wakeOnInteract |
true |
Right clicking a pet makes it get up. |
wakeOnHurt |
true |
Taking damage makes it get up. |
wakeWhenOwnerWithin |
0.0 |
In blocks, Range pet gets up when owner is close. 0 = off |
FAQ
Does the server need it? No. Client-side only.
Why does my friend's dog lie down a few seconds after mine? Each player's game keeps its own timer. It only affects how it looks.
What about parrots and horses? Only wolves and cats are covered. Parrots can sit too but don't lie down, and horses can't be told to sit. if you want me to implement other pets, let me know in my discord server.
Credits
Inspired by Let Sleeping Dogs Lie by iChun. decided to continue development and included cats.
MIT licensed, by InatorCreator.
评论 0
登录后参与评分
还没有评论,来抢沙发吧