Added EnergyStorage Model and added it to the game

This commit is contained in:
Flotschispielt
2026-02-07 19:31:44 +01:00
parent 2e3feb5c61
commit 7b6fc8ce02
4 changed files with 234 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,162 @@
{
"nodes": [
{
"id": "1",
"name": "cube",
"position": {"x": 0, "y": 0, "z": 0},
"orientation": {"x": 0, "y": 0, "z": 0, "w": 1},
"shape": {
"type": "box",
"offset": {"x": 0, "y": 4, "z": 0},
"stretch": {"x": 1, "y": 1, "z": 1},
"settings": {
"isPiece": false,
"size": {"x": 32, "y": 8, "z": 32},
"isStaticBox": true
},
"textureLayout": {
"back": {
"offset": {"x": 78, "y": 58},
"mirror": {"x": false, "y": false},
"angle": 0
},
"right": {
"offset": {"x": 78, "y": 66},
"mirror": {"x": false, "y": false},
"angle": 0
},
"front": {
"offset": {"x": 78, "y": 74},
"mirror": {"x": false, "y": false},
"angle": 0
},
"left": {
"offset": {"x": 26, "y": 80},
"mirror": {"x": false, "y": false},
"angle": 0
},
"top": {
"offset": {"x": 32, "y": 32},
"mirror": {"x": true, "y": true},
"angle": 0
},
"bottom": {
"offset": {"x": 32, "y": 32},
"mirror": {"x": true, "y": false},
"angle": 0
}
},
"unwrapMode": "custom",
"visible": true,
"doubleSided": false,
"shadingMode": "flat"
}
},
{
"id": "2",
"name": "cube",
"position": {"x": 0, "y": 24, "z": 0},
"orientation": {"x": 0, "y": 0, "z": 0, "w": 1},
"shape": {
"type": "box",
"offset": {"x": 0, "y": 4, "z": 0},
"stretch": {"x": 1, "y": 1, "z": 1},
"settings": {
"isPiece": false,
"size": {"x": 32, "y": 8, "z": 32},
"isStaticBox": true
},
"textureLayout": {
"back": {
"offset": {"x": 58, "y": 82},
"mirror": {"x": false, "y": false},
"angle": 0
},
"right": {
"offset": {"x": 26, "y": 88},
"mirror": {"x": false, "y": false},
"angle": 0
},
"front": {
"offset": {"x": 90, "y": 0},
"mirror": {"x": false, "y": false},
"angle": 0
},
"left": {
"offset": {"x": 90, "y": 8},
"mirror": {"x": false, "y": false},
"angle": 0
},
"top": {
"offset": {"x": 64, "y": 32},
"mirror": {"x": true, "y": true},
"angle": 0
},
"bottom": {
"offset": {"x": 64, "y": 32},
"mirror": {"x": true, "y": false},
"angle": 0
}
},
"unwrapMode": "custom",
"visible": true,
"doubleSided": false,
"shadingMode": "flat"
}
},
{
"id": "3",
"name": "cube",
"position": {"x": 0, "y": 8, "z": 0},
"orientation": {"x": 0, "y": 0, "z": 0, "w": 1},
"shape": {
"type": "box",
"offset": {"x": 0, "y": 8, "z": 0},
"stretch": {"x": 1, "y": 1, "z": 1},
"settings": {
"isPiece": false,
"size": {"x": 26, "y": 16, "z": 26},
"isStaticBox": true
},
"textureLayout": {
"back": {
"offset": {"x": 26, "y": 64},
"mirror": {"x": false, "y": false},
"angle": 0
},
"right": {
"offset": {"x": 64, "y": 26},
"mirror": {"x": false, "y": false},
"angle": 0
},
"front": {
"offset": {"x": 64, "y": 42},
"mirror": {"x": false, "y": false},
"angle": 0
},
"left": {
"offset": {"x": 52, "y": 64},
"mirror": {"x": false, "y": false},
"angle": 0
},
"top": {
"offset": {"x": 26, "y": 90},
"mirror": {"x": true, "y": true},
"angle": 0
},
"bottom": {
"offset": {"x": 90, "y": 0},
"mirror": {"x": true, "y": false},
"angle": 0
}
},
"unwrapMode": "custom",
"visible": true,
"doubleSided": false,
"shadingMode": "flat"
}
}
],
"format": "prop",
"lod": "auto"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1,71 @@
{
"TranslationProperties": {
"Name": "EnergyStorage Tier 1"
},
"Icon": "Icons/Items/EditorTools/Layers.png",
"IconProperties": {
"Scale": 0.36,
"Rotation": [
22.5,
45,
22.5
],
"Translation": [
12.6,
-24.6
]
},
"BlockType": {
"BlockEntity": {
"Components": {
"EnergyStorageComponent": {
"EnergyStored": 5,
"MaxEnergy": 80000,
"MaxReceive": 1000,
"MaxExtract": 1000
}
}
},
"CustomModel": "Items/EnergyStorages/EnergyStorage1.blockymodel",
"CustomModelTexture": [
{
"Texture": "Items/EnergyStorages/texture.png",
"Weight": 1
}
],
"DrawType": "Model",
"Material": "Solid",
"Gathering": {
"Breaking": {
"GatherType": "Woods"
}
},
"Interactions": {
"Primary": "Break_Container"
},
"BlockSoundSetId": "Wood",
"BlockParticleSetId": "Wood",
"VariantRotation": "NESW",
"ParticleColor": "#3e352a"
},
"Scale": 1,
"ResourceTypes": [
{
"Id": "Fuel"
},
{
"Id": "Charcoal"
}
],
"Tags": {
"Type": [
"Furniture"
],
"Family": [
"Human"
]
},
"Set": "Wardrobe",
"PlayerAnimationsId": "Block",
"ItemSoundSetId": "ISS_Blocks_Wood"
}