Fixed EnergyStorage Bug and implemented it with directional energy extraction
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -155,6 +155,110 @@
|
||||
"doubleSided": false,
|
||||
"shadingMode": "flat"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "4",
|
||||
"name": "cube",
|
||||
"position": {"x": 2, "y": 11, "z": -14},
|
||||
"orientation": {"x": 0, "y": 0, "z": 0, "w": 1},
|
||||
"shape": {
|
||||
"type": "box",
|
||||
"offset": {"x": -2, "y": 5, "z": 0},
|
||||
"stretch": {"x": 1, "y": 1, "z": 1},
|
||||
"settings": {
|
||||
"isPiece": false,
|
||||
"size": {"x": 10, "y": 10, "z": 2},
|
||||
"isStaticBox": true
|
||||
},
|
||||
"textureLayout": {
|
||||
"back": {
|
||||
"offset": {"x": 3, "y": 1},
|
||||
"mirror": {"x": false, "y": false},
|
||||
"angle": 0
|
||||
},
|
||||
"right": {
|
||||
"offset": {"x": 0, "y": 1},
|
||||
"mirror": {"x": false, "y": false},
|
||||
"angle": 0
|
||||
},
|
||||
"front": {
|
||||
"offset": {"x": 0, "y": 1},
|
||||
"mirror": {"x": false, "y": false},
|
||||
"angle": 0
|
||||
},
|
||||
"left": {
|
||||
"offset": {"x": 0, "y": 1},
|
||||
"mirror": {"x": false, "y": false},
|
||||
"angle": 0
|
||||
},
|
||||
"top": {
|
||||
"offset": {"x": 0, "y": 0},
|
||||
"mirror": {"x": false, "y": false},
|
||||
"angle": 0
|
||||
},
|
||||
"bottom": {
|
||||
"offset": {"x": 0, "y": 0},
|
||||
"mirror": {"x": false, "y": false},
|
||||
"angle": 0
|
||||
}
|
||||
},
|
||||
"unwrapMode": "custom",
|
||||
"visible": true,
|
||||
"doubleSided": false,
|
||||
"shadingMode": "flat"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "5",
|
||||
"name": "cube",
|
||||
"position": {"x": 0, "y": 15, "z": -15},
|
||||
"orientation": {"x": 0, "y": 0, "z": 0, "w": 1},
|
||||
"shape": {
|
||||
"type": "box",
|
||||
"offset": {"x": 0, "y": 1, "z": 0},
|
||||
"stretch": {"x": 1, "y": 1, "z": 1},
|
||||
"settings": {
|
||||
"isPiece": false,
|
||||
"size": {"x": 6, "y": 6, "z": 2},
|
||||
"isStaticBox": true
|
||||
},
|
||||
"textureLayout": {
|
||||
"back": {
|
||||
"offset": {"x": 0, "y": 0},
|
||||
"mirror": {"x": false, "y": false},
|
||||
"angle": 0
|
||||
},
|
||||
"right": {
|
||||
"offset": {"x": 0, "y": 0},
|
||||
"mirror": {"x": false, "y": false},
|
||||
"angle": 0
|
||||
},
|
||||
"front": {
|
||||
"offset": {"x": 1, "y": 0},
|
||||
"mirror": {"x": false, "y": false},
|
||||
"angle": 0
|
||||
},
|
||||
"left": {
|
||||
"offset": {"x": 0, "y": 0},
|
||||
"mirror": {"x": false, "y": false},
|
||||
"angle": 0
|
||||
},
|
||||
"top": {
|
||||
"offset": {"x": 1, "y": 0},
|
||||
"mirror": {"x": false, "y": false},
|
||||
"angle": 0
|
||||
},
|
||||
"bottom": {
|
||||
"offset": {"x": 1, "y": 0},
|
||||
"mirror": {"x": false, "y": false},
|
||||
"angle": 0
|
||||
}
|
||||
},
|
||||
"unwrapMode": "custom",
|
||||
"visible": true,
|
||||
"doubleSided": false,
|
||||
"shadingMode": "flat"
|
||||
}
|
||||
}
|
||||
],
|
||||
"format": "prop",
|
||||
|
||||
217
src/main/resources/Server/Item/Items/EnergyOven.json
Normal file
217
src/main/resources/Server/Item/Items/EnergyOven.json
Normal file
@@ -0,0 +1,217 @@
|
||||
{
|
||||
"TranslationProperties": {
|
||||
"Name": "server.items.Bench_Furnace.name",
|
||||
"Description": "server.items.Bench_Furnace.description"
|
||||
},
|
||||
"Icon": "Icons/ItemsGenerated/Bench_Furnace.png",
|
||||
"Categories": [
|
||||
"Furniture.Benches"
|
||||
],
|
||||
"Recipe": {
|
||||
"Input": [
|
||||
{
|
||||
"ResourceTypeId": "Wood_Trunk",
|
||||
"Quantity": 6
|
||||
},
|
||||
{
|
||||
"ResourceTypeId": "Rock",
|
||||
"Quantity": 6
|
||||
}
|
||||
],
|
||||
"Output": [
|
||||
{
|
||||
"ItemId": "Bench_Furnace",
|
||||
"Metadata": {
|
||||
"BlockState": {
|
||||
"Type": "processingBench",
|
||||
"FuelContainer": {
|
||||
"Capacity": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"BenchRequirement": [
|
||||
{
|
||||
"Type": "Crafting",
|
||||
"Categories": [
|
||||
"Workbench_Crafting"
|
||||
],
|
||||
"Id": "Workbench"
|
||||
}
|
||||
],
|
||||
"TimeSeconds": 3
|
||||
},
|
||||
"BlockType": {
|
||||
"Material": "Solid",
|
||||
"DrawType": "Model",
|
||||
"Opacity": "Solid",
|
||||
"CustomModel": "Items/EnergyStorages/EnergyStorage1.blockymodel",
|
||||
"CustomModelTexture": [
|
||||
{
|
||||
"Texture": "Items/EnergyStorages/texture.png",
|
||||
"Weight": 1
|
||||
}
|
||||
],
|
||||
"VariantRotation": "NESW",
|
||||
"Bench": {
|
||||
"Type": "Processing",
|
||||
"AllowNoInputProcessing": true,
|
||||
"Input": [
|
||||
{
|
||||
"FilterValidIngredients": true
|
||||
},
|
||||
{
|
||||
"FilterValidIngredients": true
|
||||
}
|
||||
],
|
||||
"Fuel": [
|
||||
{
|
||||
"ResourceTypeId": "Fuel",
|
||||
"Icon": "Icons/Processing/FuelSlotIcon.png"
|
||||
}
|
||||
],
|
||||
"LocalOpenSoundEventId": "SFX_Furnace_Bench_Open",
|
||||
"LocalCloseSoundEventId": "SFX_Furnace_Bench_Close",
|
||||
"CompletedSoundEventId": "SFX_Furnace_Bench_Processing_Complete",
|
||||
"EndSoundEventId": "SFX_Furnace_Bench_Processing_End",
|
||||
"FailedSoundEventId": "SFX_Furnace_Bench_Processing_Failed",
|
||||
"BenchUpgradeSoundEventId": "SFX_Workbench_Upgrade_Start_Default",
|
||||
"BenchUpgradeCompletedSoundEventId": "SFX_Workbench_Upgrade_Complete_Default",
|
||||
"ExtraOutput": {
|
||||
"Outputs": [
|
||||
{
|
||||
"ItemId": "Ingredient_Charcoal"
|
||||
}
|
||||
],
|
||||
"PerFuelItemsConsumed": 2,
|
||||
"IgnoredFuelSources": [
|
||||
{
|
||||
"ItemId": "Ingredient_Charcoal"
|
||||
},
|
||||
{
|
||||
"ItemId": "Ingredient_Fibre"
|
||||
},
|
||||
{
|
||||
"ItemId": "Ingredient_Tree_Sap"
|
||||
}
|
||||
]
|
||||
},
|
||||
"OutputSlotsCount": 4,
|
||||
"Id": "Furnace",
|
||||
"TierLevels": [
|
||||
{
|
||||
"UpgradeRequirement": {
|
||||
"Material": [
|
||||
{
|
||||
"ItemId": "Ingredient_Bar_Copper",
|
||||
"Quantity": 5
|
||||
},
|
||||
{
|
||||
"ItemId": "Ingredient_Bar_Iron",
|
||||
"Quantity": 5
|
||||
},
|
||||
{
|
||||
"ItemId": "Ingredient_Bar_Thorium",
|
||||
"Quantity": 5
|
||||
},
|
||||
{
|
||||
"ItemId": "Ingredient_Bar_Cobalt",
|
||||
"Quantity": 5
|
||||
}
|
||||
],
|
||||
"TimeSeconds": 3
|
||||
},
|
||||
"CraftingTimeReductionModifier": 0.0
|
||||
},
|
||||
{
|
||||
"CraftingTimeReductionModifier": 0.3,
|
||||
"ExtraInputSlot": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"State": {
|
||||
"Id": "processingBench",
|
||||
"Definitions": {
|
||||
"Processing": {
|
||||
"Looping": true,
|
||||
"Light": {
|
||||
"Color": "#B72"
|
||||
},
|
||||
"CustomModelTexture": [
|
||||
{
|
||||
"Texture": "Blocks/Benches/Furnace_Texture.png",
|
||||
"Weight": 1
|
||||
}
|
||||
],
|
||||
"Particles": [
|
||||
{
|
||||
"SystemId": "Fire_Furnace_On",
|
||||
"TargetNodeName": "Fire",
|
||||
"Scale": 0.7,
|
||||
"PositionOffset": {
|
||||
"X": 0,
|
||||
"Z": 0.3
|
||||
}
|
||||
}
|
||||
],
|
||||
"AmbientSoundEventId": "SFX_Furnace_Bench_Processing",
|
||||
"CustomModelAnimation": "Blocks/Benches/Furnace_Smelting.blockyanim"
|
||||
},
|
||||
"ProcessCompleted": {
|
||||
"Light": {
|
||||
"Color": "#B72"
|
||||
},
|
||||
"CustomModelTexture": [
|
||||
{
|
||||
"Texture": "Blocks/Benches/Furnace_Texture.png",
|
||||
"Weight": 1
|
||||
}
|
||||
],
|
||||
"AmbientSoundEventId": "SFX_Furnace_Bench_Processing",
|
||||
"Looping": true,
|
||||
"CustomModelAnimation": "Blocks/Benches/Furnace_Smelting.blockyanim"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Gathering": {
|
||||
"Breaking": {
|
||||
"GatherType": "Benches"
|
||||
}
|
||||
},
|
||||
"BlockParticleSetId": "Stone",
|
||||
"ParticleColor": "#5C583E",
|
||||
"Support": {
|
||||
"Down": [
|
||||
{
|
||||
"FaceType": "Full"
|
||||
}
|
||||
]
|
||||
},
|
||||
"BlockSoundSetId": "Stone",
|
||||
"Interactions": {
|
||||
"Use": "Open_Processing_Bench"
|
||||
}
|
||||
},
|
||||
"PlayerAnimationsId": "Block",
|
||||
"IconProperties": {
|
||||
"Scale": 0.365,
|
||||
"Rotation": [
|
||||
22.5,
|
||||
45,
|
||||
22.5
|
||||
],
|
||||
"Translation": [
|
||||
12,
|
||||
-17.4
|
||||
]
|
||||
},
|
||||
"Tags": {
|
||||
"Type": [
|
||||
"Bench"
|
||||
]
|
||||
},
|
||||
"MaxStack": 1,
|
||||
"ItemLevel": 1,
|
||||
"ItemSoundSetId": "ISS_Blocks_Stone"
|
||||
}
|
||||
@@ -20,7 +20,7 @@
|
||||
"Components": {
|
||||
"EnergyStorage": {
|
||||
"MaxCapacity": 10000,
|
||||
"ExtractEnergyPerTick": 1000,
|
||||
"ExtractEnergyPerTick": 500,
|
||||
"ReceiveEnergyPerTick": 1000,
|
||||
"CurrentEnergyAmount": 100
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
},
|
||||
"EnergySource": {
|
||||
"EnergyCapacity": -1,
|
||||
"GeneratesPerTick": 1
|
||||
"GeneratesPerTick": 200
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user