Added EnergyStorage Model and added it to the game
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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"
|
||||
}
|
||||
BIN
src/main/resources/Common/Items/EnergyStorages/texture.png
Normal file
BIN
src/main/resources/Common/Items/EnergyStorages/texture.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
71
src/main/resources/Server/Item/Items/EnergyStorage.json
Normal file
71
src/main/resources/Server/Item/Items/EnergyStorage.json
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user