mirror of
https://github.com/Jacobwasbeast/LegacyWeaveLoader.git
synced 2026-05-22 13:44:31 +00:00
feat(items): item display transforms and custom renderers
This commit is contained in:
@@ -392,6 +392,7 @@ public class ExampleMod : IMod
|
||||
new ItemProperties()
|
||||
.MaxStackSize(1)
|
||||
.Icon("examplemod:item/ruby_wand")
|
||||
.Model("examplemod:item/ruby_wand")
|
||||
.Name(Text.Translatable("item.examplemod.ruby_wand"))
|
||||
.InCreativeTab(CreativeTab.ToolsAndWeapons));
|
||||
|
||||
|
||||
25
ExampleMod/assets/examplemod/models/item/handheld.json
Normal file
25
ExampleMod/assets/examplemod/models/item/handheld.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"parent": "item/generated",
|
||||
"display": {
|
||||
"thirdperson_righthand": {
|
||||
"rotation": [ 0, -90, 55 ],
|
||||
"translation": [ 0, 4.0, 0.5 ],
|
||||
"scale": [ 0.85, 0.85, 0.85 ]
|
||||
},
|
||||
"thirdperson_lefthand": {
|
||||
"rotation": [ 0, 90, -55 ],
|
||||
"translation": [ 0, 4.0, 0.5 ],
|
||||
"scale": [ 0.85, 0.85, 0.85 ]
|
||||
},
|
||||
"firstperson_righthand": {
|
||||
"rotation": [ 0, -90, 25 ],
|
||||
"translation": [ 1.13, 3.2, 1.13 ],
|
||||
"scale": [ 0.68, 0.68, 0.68 ]
|
||||
},
|
||||
"firstperson_lefthand": {
|
||||
"rotation": [ 0, 90, -25 ],
|
||||
"translation": [ 1.13, 3.2, 1.13 ],
|
||||
"scale": [ 0.68, 0.68, 0.68 ]
|
||||
}
|
||||
}
|
||||
}
|
||||
6
ExampleMod/assets/examplemod/models/item/ruby_wand.json
Normal file
6
ExampleMod/assets/examplemod/models/item/ruby_wand.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "item/handheld",
|
||||
"textures": {
|
||||
"layer0": "examplemod:item/ruby_wand"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user