Entity Tutorial 1: Creating a Simple Prop: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
To do this, we will specify an entity definition using JSON. | To do this, we will specify an entity definition using JSON. | ||
<syntaxhighlight lang="json"> | |||
{ | |||
"type": "ENTITY", | |||
"name": | |||
{ | |||
"literalString" : "Shiny Gem" | |||
}, | |||
"description": | |||
{ | |||
"literalString": "A gem that shines brightly in a variety of colors." | |||
} | |||
} | |||
</syntaxhighlight> | |||
Here, the type is set to ENTITY as this mod is for a new entity type. | Here, the type is set to ENTITY as this mod is for a new entity type. |
Revision as of 03:22, 21 December 2017
We will begin by creating a simple prop that doesn't have any specific functionality.
To do this, we will specify an entity definition using JSON.
{
"type": "ENTITY",
"name":
{
"literalString" : "Shiny Gem"
},
"description":
{
"literalString": "A gem that shines brightly in a variety of colors."
}
}
Here, the type is set to ENTITY as this mod is for a new entity type.