Modding:World Access: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
{{GameVersion|1.15}}
{{GameVersion|1.15}}
<languages/><translate>
<languages/><translate>
<!--T:1-->
== Get and Set Blocks through the API ==
== Get and Set Blocks through the API ==


Let's Take our basic mod init code for a server mod


<!--T:2-->
Let's Take our basic mod init code for a server mod
</translate>
<syntaxhighlight lang="c#">
<syntaxhighlight lang="c#">
     public class SampleMod : ModSystem
     public class SampleMod : ModSystem
Line 141: Line 138:
   
   
I hope this taught you the basics of accessing the world. More ways to access blocks and entities will be added here in the future.
I hope this taught you the basics of accessing the world. More ways to access blocks and entities will be added here in the future.
 
</translate>




{{Navbox/modding|Vintage Story}}
{{Navbox/modding|Vintage Story}}
Confirmedusers, Bureaucrats, editor, Administrators
1,779

edits