Server Plugins
Creating custom blocks
Learn how to create custom blocks for your Hytale mod.
Creating custom blocks requires enabling asset packs and organizing your files properly.
Setup
- Enable asset packs in
manifest.jsonby settingIncludesAssetPacktotrue - Create the following folder structure:
model.blockymodel
texture.png
- Add translations in
Server/Languages/en-US/items.lang:
my_new_block.name = My New Block
my_new_block.description = My DescriptionBasic Cube Block
Create Server/Item/Items/my_new_block.json:
{
"TranslationProperties": {
"Name": "items.my_new_block.name",
"Description": "items.my_new_block.description"
},
"Id": "My_New_Block",
"MaxStack": 100,
"Icon": "Icons/ItemsGenerated/my_new_block.png",
"Categories": [
"Blocks.Rocks"
],
"PlayerAnimationsId": "Block",
"Set": "Rock_Stone",
"BlockType": {
"Material": "Solid",
"DrawType": "Cube",
"Group": "Stone",
"Flags": {},
"Gathering": {
"Breaking": {
"GatherType": "Rocks",
"ItemId": "my_new_block"
}
},
"BlockParticleSetId": "Stone",
"Textures": [
{
"All": "BlockTextures/my_new_block.png"
}
],
"ParticleColor": "#aeae8c",
"BlockSoundSetId": "Stone",
"BlockBreakingDecalId": "Breaking_Decals_Rock"
},
"ResourceTypes": [
{
"Id": "Rock"
}
]
}Ensure all referenced files exist in their respective folders, and the paths are correct.
Автор Flo_12344