我想知道在1.9中能不能把武器改大一些,原版的太小了。能否不用mod什么的。毕竟1.9还没有NPC 武器。谢谢了。
命令方块
什么?什么命令方块。
使用材质包...以下位置
assets\minecraft\models\item
然后比如钻石剑
新建名为diamond_sword.json的文件
输入如下(如果是1.9会略有不同,以下1.9以下为例,可到wiki详情或参考)
复制代码
材质没加,所以紫白,uv也没仔细弄,不过大概就是这样,可弄2D,也可弄3D的
要求会懂那些玩意...或者找些mc快速建json方块软件。
assets\minecraft\models\item
然后比如钻石剑
新建名为diamond_sword.json的文件
输入如下(如果是1.9会略有不同,以下1.9以下为例,可到wiki详情或参考)
- {
- "textures": {
- "particle": "blocks/PT",
- "A": "blocks/A",
- "B": "blocks/B",
- "C": "blocks/C",
- "D": "blocks/D",
- "E": "blocks/E"
- },
- "elements": [
- { "from": [ 0, 4, -5 ], "to": [ 1, 5, 32 ],
- "faces": {
- "east": { "texture": "#A", "uv": [ 0, 0, 16, 16 ] },
- "west": { "texture": "#B", "uv": [ 0, 0, 16, 16 ] },
- "north": { "texture": "#C", "uv": [ 0, 0, 16, 16 ] },
- "south": { "texture": "#D", "uv": [ 0, 0, 16, 16 ] },
- "up": { "texture": "#E", "uv": [ 0, 0, 16, 16 ] },
- "down": { "texture": "#F", "uv": [ 0, 0, 16, 16 ] }
- }
- },
- { "from": [ 0, 6, -5 ], "to": [ 1, 7, 32 ],
- "faces": {
- "east": { "texture": "#A", "uv": [ 0, 0, 16, 16 ] },
- "west": { "texture": "#B", "uv": [ 0, 0, 16, 16 ] },
- "north": { "texture": "#C", "uv": [ 0, 0, 16, 16 ] },
- "south": { "texture": "#D", "uv": [ 0, 0, 16, 16 ] },
- "up": { "texture": "#E", "uv": [ 0, 0, 16, 16 ] },
- "down": { "texture": "#F", "uv": [ 0, 0, 16, 16 ] }
- }
- },
- { "from": [ 0, 8, -5 ], "to": [ 1, 9, 32 ],
- "faces": {
- "east": { "texture": "#A", "uv": [ 0, 0, 16, 16 ] },
- "west": { "texture": "#B", "uv": [ 0, 0, 16, 16 ] },
- "north": { "texture": "#C", "uv": [ 0, 0, 16, 16 ] },
- "south": { "texture": "#D", "uv": [ 0, 0, 16, 16 ] },
- "up": { "texture": "#E", "uv": [ 0, 0, 16, 16 ] },
- "down": { "texture": "#F", "uv": [ 0, 0, 16, 16 ] }
- }
- },
- { "from": [ -3, 5, 14 ], "to": [ 3, 8, 15 ],
- "faces": {
- "up": { "texture": "#A", "uv": [ 0, 0, 16, 16 ] },
- "north": { "texture": "#B", "uv": [ 0, 0, 16, 16 ] },
- "south": { "texture": "#C", "uv": [ 0, 0, 16, 16 ] },
- "east": { "texture": "#D", "uv": [ 0, 0, 16, 16 ] },
- "west": { "texture": "#E", "uv": [ 0, 0, 16, 16 ] }
- }
- }
- ]
- }
材质没加,所以紫白,uv也没仔细弄,不过大概就是这样,可弄2D,也可弄3D的
要求会懂那些玩意...或者找些mc快速建json方块软件。
忘了补图...这是上面的示例码
⊙v⊙ 发表于 2016-3-7 16:50
使用材质包...以下位置
assets\minecraft\models\item
然后比如钻石剑
等等,一般外面下的材质包没有,只有原版的有assets\minecraft\models\item这个。
还有新建新建名为diamond_sword.json的文件是什么意思?
慕容宏冰 发表于 2016-3-7 03:30
等等,一般外面下的材质包没有,只有原版的有assets\minecraft\models\item这个。
还有新建新建名为diamo ...
那个材质包不需要用到就没加咯...
原版assets内的东西几乎都是能放到材质包里的。
反正是材质包支持的功能。
在上面材质包的目录内新建名位diamond_sword的json后缀文件是例子啊。
要把材质放大,单纯的放入大于16x16的贴图记得不管用,所以就要给武器新加一个显示模型。
....还有如果是1.9的话会略不同,左右手什么的,不过方法大致一样。我没仔细看过1.9改动,所以...恩
小弟不才...把scale给忘了
以下golden_sword.json(金剑),可保存于材质包assets\minecraft\models\item内
复制代码
第一人称右手贴图1.7倍放大显示
第一人称左手不显示(挂背后了...)
第三人称右手贴图2倍显示
第三人称左手贴图2被显示
丢地上贴图2倍显示补图
以下golden_sword.json(金剑),可保存于材质包assets\minecraft\models\item内
- {
- "parent": "builtin/generated",
- "textures": {
- "layer0": "items/gold_sword"
- },
- "display": {
- "firstperson_righthand": {
- "rotation": [ 0, -60, 30 ],
- "translation": [ 0, 1.25, -3.5 ],
- "scale": [ 1.7, 1.7, 1.7 ]
- },
- "firstperson_lefthand": {
- "rotation": [ 5, 7, -30 ],
- "translation": [ 0, 1.25, 3.5 ],
- "scale": [ 0, 0, 0 ]
- },
- "thirdperson_righthand": {
- "rotation": [ 15, 90, 0 ],
- "translation": [ 0, 7.5, -3 ],
- "scale": [ 2, 2, 2 ]
- },
- "thirdperson_lefthand": {
- "rotation": [ 90, 0, 170 ],
- "translation": [ -3.5, -5.5, 7 ],
- "scale": [ 2, 2, 2 ]
- },
- "ground": {
- "rotation": [ 0, -135, 25 ],
- "translation": [ 0, 4, 2 ],
- "scale": [ 2, 2, 2 ]
- }
- }
- }
第一人称右手贴图1.7倍放大显示
第一人称左手不显示(挂背后了...)
第三人称右手贴图2倍显示
第三人称左手贴图2被显示
丢地上贴图2倍显示补图