饥荒联机版

饥荒联机版

188 个评价
Glassic API
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
85.741 KB
2021 年 6 月 19 日 下午 11:06
8 月 14 日 上午 5:54
150 项改动说明 ( 查看 )

订阅以下载
Glassic API

在 小鸭momo 的 1 个合集中
饥荒破解版
4 件物品
描述
禁止转载,尤其WeGame

-> Github[github.com]

通过 Glassic API 你可以快速创建一个模组,以及轻松创建几乎媲美原版皮肤的皮肤!

Credits:
25 条留言
小鸭momo  [作者] 2024 年 12 月 5 日 上午 5:03 
@Applejack 本模组只保证与官方兼容,不保证与第三方模组的兼容性,有需求可以联系对方。
Applejack 2024 年 12 月 3 日 上午 12:45 
在两者都启用的情况下这个mod提供的皮肤会透明并制作就会报错
Applejack 2024 年 12 月 3 日 上午 12:44 
@小鸭momo 它只是和Modded Skins冲突,关掉后者之后就不会闪退了
小鸭momo  [作者] 2024 年 11 月 30 日 下午 8:58 
@Applejack Please describe what's happening before game crashed.
Applejack 2024 年 11 月 29 日 下午 11:22 
[05:01:57]: [string "../mods/workshop-2521851770/utils/skinhandl..."]:128: attempt to index field '?' (a nil value)
LUA ERROR stack traceback:
../mods/workshop-2521851770/utils/skinhandler.lua:148 in (method) ReskinEntity (Lua) <142-151>
scripts/prefabs/reskin_tool.lua:181 in (field) fn (Lua) <131-201>
scripts/scheduler.lua:186 in (method) OnTick (Lua) <164-216>
scripts/scheduler.lua:409 in (global) RunScheduler (Lua) <407-415>
scripts/update.lua:240 in () ? (Lua) <224-298>

[05:01:57]: Could not find anim build ms_spear_obsidian_spinner
小鸭momo  [作者] 2024 年 10 月 20 日 上午 5:54 
@FishCakesVT Read docs in modmain.
FishCakes 2024 年 10 月 16 日 下午 3:43 
how does it work?
Monc 2023 年 6 月 17 日 上午 11:00 
how can i make a mod?
Haruhi Kawaii (^ O ω < ^) 2023 年 3 月 19 日 上午 8:11 
@Civi Thank you very much, all problem solved
小鸭momo  [作者] 2023 年 3 月 19 日 上午 6:07 
@Haruhi Kawaii (*ෆ´ ˘ `ෆ*) I've seen that. Here's my suggestion.
1. Move "prefabskin.lua" from "scripts" to "main" to avoid compatibility issues.
2. Add a line "init_fn = GlassicAPI.BasicInitFn " in "CreatePrefabSkin(...)". e.g.
table.insert(prefabs, CreatePrefabSkin("kochosei_hat2", {
...
init_fn = GlassicAPI.BasicInitFn,
...
3. Comment line 9 in "prefabskin.lua".
-- GlassicAPI.SetOnequipSkinItem("kochosei_hat1", {"swap_object", "swap_hat", "swap_hat"})
* Because you have written "owner.AnimState:OverrideItemSkinSymbol" in OnEquip fn in "kochosei_hat1.lua", so you don't need to set onequipskinitem for it anymore. "GlassicAPI.SetOnequipSkinItem" is somehow a way to hack in items that are missing "owner.AnimState:OverrideItemSkinSymbol" in their OnEquip function.