Modding:Basic Modding Examples: Difference between revisions

From Vintage Story Wiki
m
VeryGoodDog moved page Basic Modding Examples to Modding:Basic Modding Examples: clean up main namespace
No edit summary
m (VeryGoodDog moved page Basic Modding Examples to Modding:Basic Modding Examples: clean up main namespace)
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__TOC__
A large amount of game content is freely modifiable through editing text files. If you feel like tinkering around, just open your assets folder. To locate it under windows, hit Winkey+R in Windows then paste in this line %appdata%/Vintagestory/assets and hit enter.
A large amount of game content is freely modifiable through editing text files. If you feel like tinkering around, just open your assets folder. To locate it under windows, hit Winkey+R in Windows then paste in this line %appdata%/Vintagestory/assets and hit enter.


<pre>Protip
{{Protip
Starting from Version 1.6 you should enable the error reporter by running the chat command /errorreporter 1 when you modify json files. With this, if you made any mistakes while changing the asset files, the game will display a dialog showing you all the errors it found.
|Starting from Version 1.6 you should enable the error reporter by running the chat command /errorreporter 1 when you modify json files. With this, if you made any mistakes while changing the asset files, the game will display a dialog showing you all the errors it found.


In earlier versions of the game you need to manually check out the log files in %appdata%/VintageStoryData/Logs/server-main.txt and client-main.txt
In earlier versions of the game you need to manually check out the log files in %appdata%/VintageStoryData/Logs/server-main.txt and client-main.txt
</pre>
}}


== Keep your contents upon death ==
== Keep your contents upon death ==
Line 17: Line 19:
Open the file <code>assets/survival/itemtypes/tool/chisel.json</code>, find the line that writes <code>microBlockChiseling: false,</code>, and set the value to <code>true</code>
Open the file <code>assets/survival/itemtypes/tool/chisel.json</code>, find the line that writes <code>microBlockChiseling: false,</code>, and set the value to <code>true</code>


This will make it so that you can right click on most solid blocks with a chisel in hands to converted the block into a chisel-able one
This will make it so that you can right click on most solid blocks with a chisel in hands to convert the block into a chisel-able one. Left click with a chisel to remove voxels and right click to add a voxel.


== Changing sleep duration in beds ==
== Changing sleep duration in beds ==
Line 136: Line 138:


Save the file and restart the your singleplayer world, place your lit fire pit and you should see this:
Save the file and restart the your singleplayer world, place your lit fire pit and you should see this:
 
<br>
[[File:Moddedfirepit.png|300px]]
[[File:Moddedfirepit.png|300px]]


Confirmedusers, Bureaucrats, editor, Administrators
1,522

edits