介绍
中文介绍正在准备中,下面暂时显示原文。
A simple Experimental Ragdoll library for Minecraft Player.
Uses Jbullet Physics engine.
Mod Adds following events for interacting with the Physics.
–
PlayerPartHitEvent
RagdollModeChangeEvent
RagdollClickEvent
Example Usage:
@SubscribeEvent
public static void onPPI(RagdollClickEvent event){
var player = event.getSource();
var part = event.getTarget();
System.out.printf("%s| %s| %s| %s",
player.getName().getString(),
part.getName().getString(),
event.getPartName(),
event.getContactPoint()
);
// e.g., apply damage, play sound, spawn particles, etc.
}
example for Applying velocities and Rotations:
@SubscribeEvent
public static void onRagdolClick(RagdollClickEvent event){
JbulletWorld jworld = JbulletWorld.get((ServerLevel)event.getSource().level());
PlayerPhysics playerPhysics = jworld.getPlayerPhys(event.getTarget());
playerPhysics.applyVel(RagdollPart.TORSO,new Vec3(0,4f,0));
}
@SubscribeEvent
public static void onRagdolClick(RagdollClickEvent event){
JbulletWorld jworld = JbulletWorld.get((ServerLevel)event.getSource().level());
PlayerPhysics playerPhysics = jworld.getPlayerPhys(event.getTarget());
playerPhysics.applyTorque(RagdollPart.TORSO,new Vec3(0,4f,0));
}
常见问题
Prototype: Physics 支持哪些 Minecraft 版本?
Prototype: Physics 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
Prototype: Physics 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
AdInVas 的其他作品
查看全部 →Prototype: Pain
by AdInVas
Overhaul of minecraft damage system adding bleeding,fractures,infection and many more.
1万
10 个月前
CurseForge
Prototype: Pain
by AdInVas
Overhaul of minecraft damage system adding bleeding,fractures,infection and many more.
4,773
10 个月前
Modrinth
Simple Azimuth Compass
by AdInVas
A Simple compass with the exact azimuth.
3,634
1 年前
CurseForge
评论
登录后评论和评分