开启辅助访问     
收藏本站

站内搜索

搜索

Minecraft(我的世界)苦力怕论坛

[游戏相关] addon的贴图无法显示【为空白】

 发表于 2024-6-18 16:20:57|显示全部楼层|阅读模式 IP:河北省
666铁粒
友友们,自制的addon包,为什么我的addon贴图都不显示呀?在线等,急急急

资源包文件展示

资源包文件展示

打开textures:
QQ截图20240618160532.png
QQ截图20240618160622.pngQQ截图20240618160800.png


这是行为包:
QQ截图20240618160936.png
QQ截图20240618161022.png
QQ截图20240618161042.png
进入游戏里显示的:
QQ截图20240618161304.png
新的item倒有了,但是没有贴图!我很懊恼!=^=
有没有人知道怎么回事呀【鼓捣半天了】

最佳答案

查看完整内容

游戏给你的模组反馈是这样的: 我翻看了一下,发现你没有对物品的图标定义 你需要在资源包文件夹与manifest.json同层的地方,新建一个名为items的文件夹 像我这样写: 代码如下: 这里有新建物品的教程,你也可以看看:https://minecraft.fandom.com/zh/wiki/%E6%95%99%E7%A8%8B/%E8%87%AA%E5%AE%9A%E4%B9%89%E7%89%A9%E5%93%81 ...
苦力怕论坛,感谢有您~
 发表于 2024-6-18 16:20:58 来自手机|显示全部楼层 IP:湖南省
本帖最后由 玖橙吖 于 2024-6-18 16:47 编辑

游戏给你的模组反馈是这样的:
  1. [Item][warning]-Item item.limo:amethyst_coin requires either an icon atlas or icon texture.

  2. [Item][warning]-Item item.limo:copper_coin requires either an icon atlas or icon texture.

  3. [Item][warning]-Item item.limo:diamond_coin requires either an icon atlas or icon texture.

  4. [Item][warning]-Item item.limo:emerald_coin requires either an icon atlas or icon texture.

  5. [Item][warning]-Item item.limo:gold_coin requires either an icon atlas or icon texture.

  6. [Item][warning]-Item item.limo:iron_coin requires either an icon atlas or icon texture.

  7. [Item][warning]-Item item.limo:netherite_coin requires either an icon atlas or icon texture.

  8. [Item][warning]-Item item.limo:ruby_coin requires either an icon atlas or icon texture.

复制代码

我翻看了一下,发现你没有对物品的图标定义
你需要在资源包文件夹与manifest.json同层的地方,新建一个名为items的文件夹
像我这样写:
Screenshot_20240618_163932.jpg
代码如下:
  1. {
  2.   "format_version": "1.10",
  3.   "minecraft:item": {
  4.     "description": {
  5.       "identifier": "你的新增物品的命名id",
  6.       "category": "物品分类"
  7.     },
  8.     "components": {
  9.       "minecraft:icon": "对图标的定义",
  10.       "minecraft:render_offsets": "miscellaneous"
  11.     }
  12.   }
  13. }
复制代码

这里有新建物品的教程,你也可以看看:https://minecraft.fandom.com/zh/ ... 9%E7%89%A9%E5%93%81
2#2024-6-18 16:20:58回复收起回复
苦力怕论坛,感谢有您~
回复

使用道具举报

 楼主|  发表于 2024-6-18 16:24:36|显示全部楼层 IP:河北省
 自制addon.mcaddon(10.19 KB, 下载次数: 11) 【附件】

为了大家方便解决我的问题,我发布了制做的addon,拜托大佬们了! 0124B76C.png
3#2024-6-18 16:24:36回复收起回复
苦力怕论坛,感谢有您~
回复

使用道具举报

 发表于 2024-6-18 18:40:41 来自手机|显示全部楼层 IP:贵州省
你使用了老版物品写法,需要资源包创建items文件,另一个人已经说了怎么搞
4#2024-6-18 18:40:41回复收起回复
苦力怕论坛,感谢有您~
回复

使用道具举报

 楼主|  发表于 2024-6-22 11:12:49 来自手机|显示全部楼层 IP:河北省
玖橙吖 发表于 2024-6-18 16:41
游戏给你的模组反馈是这样的:
我翻看了一下,发现你没有对物品的图标定义
你需要在资源包文件夹与manifest ...

解决了,非常感谢~
5#2024-6-22 11:12:49回复收起回复
苦力怕论坛,感谢有您~
回复

使用道具举报

本版积分规则

本站
关于我们
联系我们
坛史纲要
官方
哔哩哔哩
技术博客
下载
网易版
安卓版
JAVA
反馈
意见建议
教程中心
更多
捐助本站
QQ群
QQ群

QQ群

访问手机版

访问手机版

手机版|小黑屋|系统状态|klpbbs.com

粤公网安备 44200002445329号 | 由 木韩网络 提供云服务 | GMT+8, 2024-9-27 11:52

声明:本站与Mojang以及微软公司没有从属关系

Powered by Discuz! X3.4 粤ICP备2023071842号