Modding:Block Entity Classes: Difference between revisions
Lazy Warlock (talk | contribs) |
mNo edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Outdated|A new system is being worked on to view JSON properties. Please use this page with caution, as it may not be up-to-date.}} | |||
== Using block Entity classes == | == Using block Entity classes == | ||
May blocks that have interactive functions will require using a block entity to accomplish. When your block requires the use of a block entity you assign it using the following property format in the JSON: | May blocks that have interactive functions will require using a block entity to accomplish. When your block requires the use of a block entity you assign it using the following property format in the JSON: | ||
Line 19: | Line 20: | ||
| Anvil || anvil || Controls the rendering and forging of work items on an anvil. || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEAnvil.cs Anvil Block Entity Class ] | | Anvil || anvil || Controls the rendering and forging of work items on an anvil. || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEAnvil.cs Anvil Block Entity Class ] | ||
|- | |- | ||
| Barrel || barrel || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/ | | Barrel || barrel || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/Systems/Barrel/BEBarrel.cs Barrel Block Entity Class ] | ||
|- | |- | ||
| Bed || bed || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEBed.cs Bed Block Entity Class ] | | Bed || bed || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEBed.cs Bed Block Entity Class ] | ||
Line 25: | Line 26: | ||
| Beehive || wildbeehive || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEBeehive.cs Beehive Block Entity Class ] | | Beehive || wildbeehive || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEBeehive.cs Beehive Block Entity Class ] | ||
|- | |- | ||
| Bellows || | | Bellows || - || Unfinished || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/Unfinished/BEBellows.cs Bellows Block Entity Class ] | ||
|- | |- | ||
| BerryBush || smallberrybush, largeberrybush || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEBerryBush.cs Berry Bush Block Entity Class ] | | BerryBush || smallberrybush, largeberrybush || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEBerryBush.cs Berry Bush Block Entity Class ] | ||
|- | |- | ||
| BlastFurnace || - || | | BlastFurnace || - || Unfinished || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/Unfinished/BEBlastFurnace.cs Blast Furnace Block Entity Class ] | ||
|- | |- | ||
| Bloomery || bloomerybase || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEBloomery.cs Bloomery Block Entity Class ] | | Bloomery || bloomerybase || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEBloomery.cs Bloomery Block Entity Class ] | ||
Line 57: | Line 58: | ||
| Fire || - || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEFire.cs Fire Block Entity Class ] | | Fire || - || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEFire.cs Fire Block Entity Class ] | ||
|- | |- | ||
| FireWoodPile || firewoodpile || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEFireWoodPile.cs Firewood Pile Block Entity Class ] | | FireWoodPile || firewoodpile || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/Legacy/BlockEntity/BEFireWoodPile.cs Firewood Pile Block Entity Class ] | ||
|- | |- | ||
| Firepit || firepit || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEFirepit.cs Firepit Block Entity Class ] | | Firepit || firepit || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/Firepit/BEFirepit.cs Firepit Block Entity Class ] | ||
|- | |- | ||
| Forge || forge || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEForge.cs Forge Block Entity Class ] | | Forge || forge || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEForge.cs Forge Block Entity Class ] | ||
Line 69: | Line 70: | ||
| IngotMold || ingotmold || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEIngotMold.cs Ingot Mold Block Entity Class ] | | IngotMold || ingotmold || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEIngotMold.cs Ingot Mold Block Entity Class ] | ||
|- | |- | ||
| IngotPile || ingotpile || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEIngotPile.cs Ingot Pile Block Entity Class ] | | IngotPile || ingotpile || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/Legacy/BlockEntity/BEIngotPile.cs Ingot Pile Block Entity Class ] | ||
|- | |- | ||
| ItemFlow || - || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEItemFlow.cs Flowing Item Block Entity Class ] | | ItemFlow || - || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEItemFlow.cs Flowing Item Block Entity Class ] | ||
Line 83: | Line 84: | ||
| Meal || bowl-meal || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEMeal.cs Meal Block Entity Class ] | | Meal || bowl-meal || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEMeal.cs Meal Block Entity Class ] | ||
|- | |- | ||
| PeatPile || peatpile || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEPeatPile.cs Peat Pile Block Entity Class ] | | PeatPile || peatpile || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/Legacy/BlockEntity/BEPeatPile.cs Peat Pile Block Entity Class ] | ||
|- | |- | ||
| PlankPile || plankpile || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEPlankPile.cs Plank Pile Block Entity Class ] | | PlankPile || plankpile || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/Legacy/BlockEntity/BEPlankPile.cs Plank Pile Block Entity Class ] | ||
|- | |- | ||
| PlatePile || platepile || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEPlatePile.cs Plate Pile Block Entity Class ] | | PlatePile || platepile || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/Legacy/BlockEntity/BEPlatePile.cs Plate Pile Block Entity Class ] | ||
|- | |- | ||
| PumpkinVine || vine (pumpkin) || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEPumpkinVine.cs Pumpkin Vine Block Entity Class ] | | PumpkinVine || vine (pumpkin) || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEPumpkinVine.cs Pumpkin Vine Block Entity Class ] | ||
Line 107: | Line 108: | ||
| StaticTranslocator || statictranslocator || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEStaticTranslocator.cs Static Translocator Block Entity Class ] | | StaticTranslocator || statictranslocator || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BEStaticTranslocator.cs Static Translocator Block Entity Class ] | ||
|- | |- | ||
| Stove || - || | | Stove || - || Unfinished || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/Unfinished/BEStove.cs Stove Block Entity Class ] | ||
|- | |- | ||
| Tapestry || tapestry || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BETapestry.cs Tapestry Block Entity Class ] | | Tapestry || tapestry || - || [https://github.com/anegostudios/vssurvivalmod/blob/master/BlockEntity/BETapestry.cs Tapestry Block Entity Class ] | ||
Line 138: | Line 139: | ||
{{Navbox/modding|Vintage Story}} | {{Navbox/modding|Vintage Story}} | ||
[[Category:Modding{{#translation:}}]] | |||
[[Category:Modding:Content{{#translation:}}]] |
Latest revision as of 22:24, 21 November 2024
This page is outdated.
Reason: A new system is being worked on to view JSON properties. Please use this page with caution, as it may not be up-to-date.
The content on this page is not up to date with the most recent game update. If you do wish to contribute, please request wiki edit access on the Discord.
Using block Entity classes
May blocks that have interactive functions will require using a block entity to accomplish. When your block requires the use of a block entity you assign it using the following property format in the JSON:
entityClass: "Entity"
NOTE: Although they are referenced in JSONS as "Anvil", "Bed" etc. Block Entity class files themselves use the BEAnvil, BEBed naming convention.
A majority of all block entities can be viewed at the Vintage Story Github here for those looking to learn more about each.
Additionally, all mechanical block entities can be found here.
All Block Entities
Here is a table containing all block entities used as of version 1.9.+z
Mechanical Power Block Entity Classes
This table contains all the block entities relevant to mechanical power.
Class Name | Example Blocks | Description | Github Link |
---|---|---|---|
Brake | brake | Controls the rotation of the brake axle and events that occur when the player interacts with it. | Brake Block Entity Class |
Clutch | clutch | - | Clutch Block Entity Class |
HelveHammer | helvehammerbase | - | Helve Hammer Class |
Wondering where some links have gone?
The modding navbox is going through some changes! Check out Navigation Box Updates for more info and help finding specific pages.
Modding | |
---|---|
Modding Introduction | Getting Started • Theme Pack |
Content Modding | Content Mods • Developing a Content Mod • Basic Tutorials • Intermediate Tutorials • Advanced Tutorials • Content Mod Concepts |
Code Modding | Code Mods • Setting up your Development Environment |
Property Overview | Item • Entity • Entity Behaviors • Block • Block Behaviors • Block Classes • Block Entities • Block Entity Behaviors • Collectible Behaviors • World properties |
Workflows & Infrastructure | Modding Efficiency Tips • Mod-engine compatibility • Mod Extensibility • VS Engine |
Additional Resources | Community Resources • Modding API Updates • Programming Languages • List of server commands • List of client commands • Client startup parameters • Server startup parameters Example Mods • API Docs • GitHub Repository |