截图
介绍
中文介绍正在准备中,下面暂时显示原文。
Gecko JS
Use GeckoLib to create animatable block/item/armor by KubeJS
Simple Example
Startup script
StartupEvents.registry("block", event => {
const rotating = RawAnimation.begin().thenLoop("rotating");
event.create("geckojs:example_block", "animatable")
.box(1, 1, 1, 15, 15, 15, true)
.animatableBlockEntity(blockEntity => {
blockEntity.addAnimation(state => state.setAndContinue(rotating))
})
.defaultGeoModel()
})
Model “assets/geckojs/geo/block/example_block.geo.json“
{
"format_version": "1.12.0",
"minecraft:geometry": [
{
"description": {
"identifier": "geometry.example_block",
"texture_width": 48,
"texture_height": 48,
"visible_bounds_width": 3,
"visible_bounds_height": 2.5,
"visible_bounds_offset": [0, 0.75, 0]
},
"bones": [
{
"name": "bone",
"pivot": [0, 8, 0],
"cubes": [
{
"origin": [-7, 1, -7],
"size": [14, 14, 14],
"uv": {
"north": {"uv": [0, 0], "uv_size": [14, 14]},
"east": {"uv": [0, 14], "uv_size": [14, 14]},
"south": {"uv": [14, 0], "uv_size": [14, 14]},
"west": {"uv": [14, 14], "uv_size": [14, 14]},
"up": {"uv": [0, 28], "uv_size": [14, 14]},
"down": {"uv": [28, 14], "uv_size": [14, -14]}
}
}
]
}
]
}
]
}
Animation “assets/geckojs/animations/block/example_block.animations.json“
{
"format_version": "1.8.0",
"animations": {
"rotating": {
"loop": true,
"animation_length": 3,
"bones": {
"bone": {
"rotation": {
"vector": ["Math.sin(query.anim_time*90)*180", "Math.cos(query.anim_time*90)*180", "Math.sin(query.anim_time*90)*180"]
}
}
}
}
},
"geckolib_format_version": 2
}
Texture “assets/geckojs/textures/block/example_block.png“

常见问题
GeckoJS 支持哪些 Minecraft 版本?
GeckoJS 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。
GeckoJS 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
westernat233 的其他作品
查看全部 →Terra Entity
by westernat233, magic_harp 等
A mod encompasses numerous Terraria monsters and bosses, and constitutes one of the submodules integrated within the larger mod, Confluence.
54.3万
4 个月前
CurseForge
Confluence: Otherworld
by westernat233, magic_harp 等
A mod that integrates content from Terraria into Minecraft, with the goal of creating a cohesive and fun combination of the two games.
53.4万
10 天前
CurseForge
Advancement JS
by westernat233
Configure more than advancements by KubeJS
26.3万
2 年前
Modrinth
Confluence Music
by westernat233, SquidSine
Confluence: Otherworld official music pack
16.6万
10 天前
CurseForge
评论
登录后评论和评分