Added Interaction for EnergyStorages

This commit is contained in:
Flotschispielt
2026-02-08 16:08:29 +01:00
parent b085d8b6ad
commit ba5f5e11b4
4 changed files with 97 additions and 7 deletions

View File

@@ -41,7 +41,13 @@
}
},
"Interactions": {
"Primary": "Break_Container"
"Use": {
"Interactions": [
{
"Type": "StorageUseInteraction"
}
]
}
},
"BlockSoundSetId": "Wood",
"BlockParticleSetId": "Wood",

View File

@@ -19,14 +19,14 @@
"BlockEntity": {
"Components": {
"EnergyStorage": {
"MaxCapacity": 10000,
"MaxCapacity": 1000,
"ExtractEnergyPerTick": 100,
"ReceiveEnergyPerTick": 1000,
"CurrentEnergyAmount": 0
},
"EnergySource": {
"EnergyCapacity": -1,
"GeneratesPerTick": 100
"GeneratesPerTick": 1
}
}
},
@@ -51,14 +51,20 @@
}
]
},
"Interactions": {
"Primary": "Break_Container"
},
"State": {},
"BlockSoundSetId": "Wood",
"BlockParticleSetId": "Wood",
"VariantRotation": "NESW",
"ParticleColor": "#3e352a"
"ParticleColor": "#3e352a",
"Interactions": {
"Use": {
"Interactions": [
{
"Type": "StorageUseInteraction"
}
]
}
}
},
"Scale": 1,
"ResourceTypes": [