SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Back to NxLabs

NxLabs / Vintage Story

Grenades!

LBy LubieKakao1212

Adds grenades for your combat blasting needs

Grenades!

Description

<h3>Version 1.2.0 changed how the config works, old config files will not work</h3> <p>&nbsp;</p> <p>A mod which adds throwable, explosive grenades.</p> <p>Types of grenades:</p> <ul> <li>Jug Bombs - Low damage with large blast radius</li> <li>Jug Fire and Oil Bombs - Almost no direct damage but leaves flaming pieces on the ground</li> <li>Glass Grenades - Medium damage with medium blast radius</li> <li>Metal Grenades - High damage with low blast radius, damage depends on type of metal used</li> </ul> <p>&nbsp;</p> <p>Grenade explosions do NOT destroy blocks, so they are safe to use at home : )</p> <p>&nbsp;</p> <p>This mod may be a bit under/over-powered, balance needs testing.</p> <p>If you have suggestions regarding balansing or anything else, feel free to post it.</p> <p>&nbsp;</p> <p>&nbsp;</p> <div class="spoiler"> <div class="spoiler-toggle">How to tweak the config</div> <div class="spoiler-text">This is an example config with additional comments, just don't use comments in your final config as they seem cause the json to not load properly. <p>&nbsp;</p> <pre class="language-javascript"><code>{ "overrides": [ { // Override the damage of "blue" grenades [glass, jug bomb, jug fire bomb, jug oil bomb] "Key": "*blue*", "Value": { "damage": 100 } }, { // Override the damage, radius, and knockback of all grenades jug bombs "Key": "jug-bomb-*-standard", "Value": { "damage": 1, // Won't apply for jug-bomb-blue-standard because its damage was changed in the previous override "radius": 1, "knockback": 10 } }, { // Disable shrapnel of metal grenades "Key": "*-metal-*", "Value": { "shrapnel": { "enabled": false } } }, { // Enable shrapnel for glass grenades (yes you can do that), and lower the fuse time "Key": "*-metal-*", "Value": { "fuse": 0.5, "shrapnel": { "enabled": true, // You most likely want to set all the parameters since they are not set for glass grenades "damage": 30, "amount": { "value": 32, "randomness": 2 }, "lifetime": { "value": 1, "randomness": 0.1 }, "velocity": { "value": 10, "randomness": 5 }, "velocityInheritance": 10, "directionPitchMin": -90, "directionPitchMax": 90 } } }, { // Reference of all the configurable values (Default values are in the item files on the repo) "Key": "*", "Value": { "fuse": 2, // Fuse time, in seconds "radius": 6, // Explosion radius, in blocks "innerRadius": 0.7, // Peak damage radius as a ratio of total radius, must be in range [0, 1] "damage": 9.5, // Peak damage "damageTier": 2, // Damage tier "knockback": 1, // Knockback "launchForce": 12, // Velocity of the grenade after throwing, in blocks per second "shrapnel": { //Regarding shrapnel "enabled": true, // Enable/Disable for shrapnel "damage": 2, // Damage dealt by the shrapnel pieces, damage per "tick" for flames "amount": { // Amount of shrapnel pieces "value": 8, "randomness": 2 }, // Final Value is in range [value - randomness, value + randomness] "lifetime": { // Time until a piece despawns, in seconds "value": 1, "randomness": 0.1 }, // Final Value is in range [value - randomness, value + randomness] "velocity": { // Speed of launched pieces, in blocks per second "value": 20, "randomness": 5 }, // Final Value is in range [value - randomness, value + randomness] "velocityInheritance": 1, // How much the velocity of the shrapnel is affected by the velocity of the grenade at the time of detonation "directionPitchMin": -45, //Minimum allowed angle form the XZ plane at which the shrapnel will be launched "directionPitchMax": 45 //Maximum allowed angle form the XZ plane at which the shrapnel will be launched } } } ] }</code></pre> </div> </div> <p>&nbsp;</p> <div class="spoiler"> <div class="spoiler-toggle" style="text-align: left;">How to tweak the config (Old, before 1.2.0)</div> <div class="spoiler-text">This is an example config with additional comments, just don't use comments in your final config as they seem cause the json to not load properly. <p>&nbsp;</p> <pre>{<br /> "damage": [<br /> {<br /> //You can use wildcards in keys<br /> "Key": "jug-bomb-*",<br /> "Value": 3.0<br /> }<br /> ],<br /> "damageTier": [],<br /> "radius": [],<br /> "fullDamageRadius": [],<br /> "fuse": [<br /> {<br /> //Changes fuse of all grenades to 3s<br /> "Key": "*",<br /> "Value": 3.0<br /> }<br /> ],<br /> //entries are checked from top to bottom<br /> "throwingForce": [<br /> {<br /> //Changes the throwing force of gold grenade (this is a very large value)<br /> "Key": "*-metal-gold",<br /> "Value": 1<br /> },<br /> {<br /> //Changes the throwing force of every other metal grenade except gold (gold was already assigned a value of 1 in the previous entry)<br /> "Key": "*-metal-*",<br /> "Value": 0.25<br /> }<br /> ]<br />}</pre> </div> </div> <p>&nbsp;</p> <p>Known issues:</p> <p><span style="text-decoration: line-through;">Game not loading when config was changed</span>&nbsp;Fixed in 1.2.1</p> <p>&nbsp;</p> <p>Thats a terrible thumbnail, I know : (</p>

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.