Json Random Generator: Difference between revisions
From Vintage Story Wiki
(add navbox) |
m (Updated navbox to new content navbox.) |
||
Line 55: | Line 55: | ||
</table> | </table> | ||
{{Navbox/ | {{Navbox/contentmodding}} |
Latest revision as of 14:23, 27 March 2024
avg: Stands for the default drop quantity. If var is 0 or not specified it will always drop the given average.
var: How much the drop rate can vary. Meaning the drop rate can be avg - var
at minimum and age + var
at maximum.
Furthermore you can also switch between different distribution modes using the dist property.
Overview - Distribution modes | |
---|---|
Name | Explanation |
uniform | Select completely random numbers within avg-var until avg+var. |
triangle | Select random numbers with numbers near avg being the most commonly selected ones, following a triangle curve. |
gaussian | Select random numbers with numbers near avg being the most commonly selected ones, following a gaussian curve. |
narrowgaussian | Select random numbers with numbers near avg being the most commonly selected ones, following a narrow gaussian curve. |
inversegaussian | Select random numbers with numbers near avg being the least commonly selected ones, following an upside down gaussian curve. |
narrowinversegaussian | Select random numbers with numbers near avg being the least commonly selected ones, following an upside down gaussian curve. |
invexp | Select numbers in the form of avg + var, wheras low value of var are preferred. |
stronginvexp | Select numbers in the form of avg + var, wheras low value of var are strongly preferred. |
strongerinvexp | Select numbers in the form of avg + var, wheras low value of var are very strongly preferred. |
dirac | Select completely random numbers within avg-var until avg+var only ONCE and then always 0. |
Content Modding | |||||||||
---|---|---|---|---|---|---|---|---|---|
Basics | Content Mods • Developing a Content Mod | ||||||||
Tutorials |
|
||||||||
Concepts | Modding Concepts • Variants • Domains • Patching • Remapping • World Properties | ||||||||
Uncategorized |
|
Wondering where some links have gone?
The modding navbox is going through some changes! Check out Navigation Box Updates for more info and help finding specific pages.
Modding | |
---|---|
Modding Introduction | Getting Started • Theme Pack |
Content Modding | Content Mods • Developing a Content Mod • Basic Tutorials • Intermediate Tutorials • Advanced Tutorials • Content Mod Concepts |
Code Modding | Code Mods • Setting up your Development Environment |
Property Overview | Item • Entity • Block • Block Behaviors • Block Classes • Block Entities • Block Entity Behaviors • World properties |
Workflows & Infrastructure | Modding Efficiency Tips • Mod-engine compatibility • Mod Extensibility • VS Engine |
Additional Resources | Community Resources • Modding API Updates • Programming Languages • List of server commands • List of client commands • Client startup parameters • Server startup parameters Example Mods • API Docs • GitHub Repository |