Skip to content

Instantly share code, notes, and snippets.

@victorysoftworks
Last active July 22, 2021 04:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save victorysoftworks/0f5934a69d5030f477cc8d54bbbf411f to your computer and use it in GitHub Desktop.
Save victorysoftworks/0f5934a69d5030f477cc8d54bbbf411f to your computer and use it in GitHub Desktop.
<entity>
<component type="NamePrefix" prefix="slime-covered" />
<component type="Name" name="treasure chest" />
<!-- A container can be opened; doing so broadcasts a `contact` event -->
<component type="Container" capacity="10">
<item><!-- Item inside treasure chest ... --></item>
</component>
<component type="ContactEffect">
<effect type="Corrode" amount="2" corrodeMessage="The corrosive slime covering the %S sticks to the %t" />
</component>
<!-- Other components ... -->
</entity>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment