跳到正文

KubeJS ItemPhysics

Dynamic item interactions powered by scripted events.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

KubeJS Item Physics

KubeJS Item Physics is an addon for KubeJS that enhances item interactions by introducing physics-based events. This allows modders to script custom behaviors when players pick up items, enabling more dynamic and immersive mechanics.

Features

  • 🎮 Physics-Based Item Pickup Events – Modify how items are collected based on scripted interactions.
  • 🔧 KubeJS Event Integration – Use JavaScript to define custom physics behaviors.
  • 🛠️ Access to Player, Hand, and Item Data – Retrieve essential information for precise control over item interactions.

Available Event

KubeJSItemPhysics.playerPhysicsPickupEvent(event => { })

This event is triggered when a player picks up an item with physics-based interactions.

Event Methods

| Method | Description |
|——–|————|
| event.getEntity() | Returns the PlayerEntity who picked up the item. |
| event.getHand() | Returns the Hand used to pick up the item. |
| event.getItem() | Returns the ItemEntity being picked up. |

常见问题

KubeJS ItemPhysics 支持哪些 Minecraft 版本?

KubeJS ItemPhysics 支持 Minecraft Java 版 1.19.2,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

KubeJS ItemPhysics 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

Dreaming-Codes 的其他作品

查看全部 →