Confirmedusers, editor, Administrators
886
edits
CreativeMD (talk | contribs) No edit summary |
CreativeMD (talk | contribs) No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 12: | Line 12: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
You can download the assets [ | You can download the assets [https://wiki.vintagestory.at/images/d/d4/Ticking_-_No_CS_File.zip here] and place it in your mods directory. | ||
== The BlockEntity == | == The BlockEntity == | ||
Line 112: | Line 112: | ||
{ | { | ||
base.Start(api); | base.Start(api); | ||
api. | api.RegisterBlockEntityClass("tickingcounter", typeof(TickingBlockEntity)); | ||
} | } | ||
Line 122: | Line 122: | ||
Now everything is ready to run the first test: | Now everything is ready to run the first test: | ||
<youtube>QQUibC4H9TI</youtube> | |||
== Distribution == | == Distribution == | ||
In order to finish everything, open the modtools and type in <code>pack <your mod id></code>. Now you can take the zip file and share it with other people. It will work in the same way as ordinary mods, you can install it by copying it into the mods folder. | |||
Here is my version: [ | Here is my version: [https://wiki.vintagestory.at/images/6/65/Ticking.zip Ticking.zip] | ||
{{Navbox/modding|Vintage Story}} |