feat: 添加麦子交通一卡通
This commit is contained in:
@@ -1512,6 +1512,19 @@ StartupEvents.registry('block', regBlockReinforcedConcrete);
|
|||||||
StartupEvents.registry('block', regBlockOtherBasic);
|
StartupEvents.registry('block', regBlockOtherBasic);
|
||||||
StartupEvents.registry('block', regBlockOtherShaped);
|
StartupEvents.registry('block', regBlockOtherShaped);
|
||||||
|
|
||||||
|
// 注册物品
|
||||||
|
StartupEvents.registry('item', (event) => {
|
||||||
|
|
||||||
|
let itemMaizitong = event.create(`${MOD_ID}:maizitong`);
|
||||||
|
|
||||||
|
itemMaizitong.displayName({ text: '麦子通' });
|
||||||
|
itemMaizitong.tooltip({ text: '麦子交通一卡通' })
|
||||||
|
itemMaizitong.fireResistant();
|
||||||
|
itemMaizitong.maxStackSize(1);
|
||||||
|
itemMaizitong.parentModel(`${P_ITEM}/maizitong`);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
// 注册创造模式标签页
|
// 注册创造模式标签页
|
||||||
StartupEvents.registry('creative_mode_tab', (event) => {
|
StartupEvents.registry('creative_mode_tab', (event) => {
|
||||||
|
|
||||||
|
|||||||
56
resourcepack/assets/wheat_plus/models/item/maizitong.json
Normal file
56
resourcepack/assets/wheat_plus/models/item/maizitong.json
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
{
|
||||||
|
"credit": "Created by Frost-ZX using Blockbench.",
|
||||||
|
"textures": {
|
||||||
|
"front": "wheat_plus:item/mai_zi_tong_f",
|
||||||
|
"back": "wheat_plus:item/mai_zi_tong_b"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{
|
||||||
|
"name": "麦子交通一卡通",
|
||||||
|
"from": [0, 3, 8],
|
||||||
|
"to": [16, 13, 8.5],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [8, 11, 16]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [0, 3, 16, 13], "texture": "#front"},
|
||||||
|
"east": {"uv": [0, 0.5, 10, 1], "rotation": 90, "texture": "#front"},
|
||||||
|
"south": {"uv": [0, 3, 16, 13], "texture": "#back"},
|
||||||
|
"west": {"uv": [0, 0.5, 10, 1], "rotation": 90, "texture": "#front"},
|
||||||
|
"up": {"uv": [0, 0, 16, 0.5], "texture": "#front"},
|
||||||
|
"down": {"uv": [0, 0, 16, 0.5], "texture": "#front"}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"display": {
|
||||||
|
"thirdperson_righthand": {
|
||||||
|
"rotation": [90, 0, -105],
|
||||||
|
"translation": [-1, -2, -3],
|
||||||
|
"scale": [0.5, 0.5, 0.5]
|
||||||
|
},
|
||||||
|
"thirdperson_lefthand": {
|
||||||
|
"rotation": [90, 0, -105],
|
||||||
|
"translation": [-1, -2, -3],
|
||||||
|
"scale": [0.5, 0.5, 0.5]
|
||||||
|
},
|
||||||
|
"firstperson_righthand": {
|
||||||
|
"rotation": [125, 0, -105],
|
||||||
|
"scale": [0.5, 0.5, 0.5]
|
||||||
|
},
|
||||||
|
"firstperson_lefthand": {
|
||||||
|
"rotation": [125, 0, -105],
|
||||||
|
"scale": [0.5, 0.5, 0.5]
|
||||||
|
},
|
||||||
|
"ground": {
|
||||||
|
"rotation": [90, 0, 0],
|
||||||
|
"scale": [0.8, 0.8, 0.8]
|
||||||
|
},
|
||||||
|
"gui": {
|
||||||
|
"rotation": [0, -180, 0]
|
||||||
|
},
|
||||||
|
"head": {
|
||||||
|
"translation": [0, 11, 0]
|
||||||
|
},
|
||||||
|
"fixed": {
|
||||||
|
"translation": [0, 0, -1]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
resourcepack/assets/wheat_plus/textures/item/mai_zi_tong_b.png
Normal file
BIN
resourcepack/assets/wheat_plus/textures/item/mai_zi_tong_b.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.7 KiB |
BIN
resourcepack/assets/wheat_plus/textures/item/mai_zi_tong_f.png
Normal file
BIN
resourcepack/assets/wheat_plus/textures/item/mai_zi_tong_f.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 70 KiB |
BIN
resourcepack/assets/wheat_plus/textures/item/mai_zi_tong_f_l.png
Normal file
BIN
resourcepack/assets/wheat_plus/textures/item/mai_zi_tong_f_l.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 70 KiB |
Reference in New Issue
Block a user