

Description
Version 1.2.0 changed how the config works, old config files will not work
A mod which adds throwable, explosive grenades.
Types of grenades:
- Jug Bombs - Low damage with large blast radius
- Jug Fire and Oil Bombs - Almost no direct damage but leaves flaming pieces on the ground
- Glass Grenades - Medium damage with medium blast radius
- Metal Grenades - High damage with low blast radius, damage depends on type of metal used
Grenade explosions do NOT destroy blocks, so they are safe to use at home : )
This mod may be a bit under/over-powered, balance needs testing.
If you have suggestions regarding balansing or anything else, feel free to post it.
How to tweak the config
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.
<pre class="language-javascript">{ "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 } } } ] }</pre>
How to tweak the config (Old, before 1.2.0)
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.
"damage": [
{
//You can use wildcards in keys
"Key": "jug-bomb-",
"Value": 3.0
}
],
"damageTier": [],
"radius": [],
"fullDamageRadius": [],
"fuse": [
{
//Changes fuse of all grenades to 3s
"Key": "",
"Value": 3.0
}
],
//entries are checked from top to bottom
"throwingForce": [
{
//Changes the throwing force of gold grenade (this is a very large value)
"Key": "-metal-gold",
"Value": 1
},
{
//Changes the throwing force of every other metal grenade except gold (gold was already assigned a value of 1 in the previous entry)
"Key": "-metal-*",
"Value": 0.25
}
]
}</pre>
<pre>{"damage": [
{
//You can use wildcards in keys
"Key": "jug-bomb-",
"Value": 3.0
}
],
"damageTier": [],
"radius": [],
"fullDamageRadius": [],
"fuse": [
{
//Changes fuse of all grenades to 3s
"Key": "",
"Value": 3.0
}
],
//entries are checked from top to bottom
"throwingForce": [
{
//Changes the throwing force of gold grenade (this is a very large value)
"Key": "-metal-gold",
"Value": 1
},
{
//Changes the throwing force of every other metal grenade except gold (gold was already assigned a value of 1 in the previous entry)
"Key": "-metal-*",
"Value": 0.25
}
]
}</pre>
Known issues:
<span style="text-decoration: line-through;">Game not loading when config was changed</span> Fixed in 1.2.1
Thats a terrible thumbnail, I know : (
Ratings & reviews
No ratings yet
Sign in to leave a rating or comment.


