mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Make Smooth Brick to Mossy Brick and Dirt to Grass for green thumb configurable
Closes issue #120
This commit is contained in:
parent
17bacbf9d6
commit
b4b0bbd081
@ -4,6 +4,7 @@ Changelog:
|
|||||||
Version 2.0-dev
|
Version 2.0-dev
|
||||||
- Removed legacy Permission & PEX support. SuperPerms support only now.
|
- Removed legacy Permission & PEX support. SuperPerms support only now.
|
||||||
- Added framework for new Mining sub-skill: Blast Mining.
|
- Added framework for new Mining sub-skill: Blast Mining.
|
||||||
|
- Made Smooth Brick to Mossy Brick and Dirt to Grass for green thumb configurable (Issue #120)
|
||||||
|
|
||||||
Version 1.2.10
|
Version 1.2.10
|
||||||
- Fixed issue with receiving Woodcutting XP for all blocks broken (Issue #103)
|
- Fixed issue with receiving Woodcutting XP for all blocks broken (Issue #103)
|
||||||
|
@ -42,7 +42,8 @@ public class LoadProperties {
|
|||||||
mayLoseEnchants, fishingDrops, leatherArmor, ironArmor, goldArmor,
|
mayLoseEnchants, fishingDrops, leatherArmor, ironArmor, goldArmor,
|
||||||
diamondArmor, woodenTools, stoneTools, ironTools, goldTools,
|
diamondArmor, woodenTools, stoneTools, ironTools, goldTools,
|
||||||
diamondTools, enderPearl, blazeRod, records, glowstoneDust,
|
diamondTools, enderPearl, blazeRod, records, glowstoneDust,
|
||||||
fishingDiamonds, aDisplayNames, pDisplayNames;
|
fishingDiamonds, aDisplayNames, pDisplayNames, enableSmoothToMossy,
|
||||||
|
enableDirtToGrass;
|
||||||
|
|
||||||
public static String MySQLtablePrefix, MySQLuserName,
|
public static String MySQLtablePrefix, MySQLuserName,
|
||||||
MySQLserverName, MySQLdbName, MySQLdbPass, nWood, nStone,
|
MySQLserverName, MySQLdbName, MySQLdbPass, nWood, nStone,
|
||||||
@ -298,6 +299,8 @@ public class LoadProperties {
|
|||||||
enableRegen = readBoolean("General.HP_Regeneration.Enabled", true);
|
enableRegen = readBoolean("General.HP_Regeneration.Enabled", true);
|
||||||
|
|
||||||
enableCobbleToMossy = readBoolean("Skills.Herbalism.Green_Thumb.Cobble_To_Mossy", true);
|
enableCobbleToMossy = readBoolean("Skills.Herbalism.Green_Thumb.Cobble_To_Mossy", true);
|
||||||
|
enableSmoothToMossy = readBoolean("Skills.Herbalism.Green_Thumb.SmoothBrick_To_MossyBrick", true);
|
||||||
|
enableDirtToGrass = readBoolean("Skills.Herbalism.Green_Thumb.Dirt_To_Grass", true);
|
||||||
|
|
||||||
xpGainMultiplier = readInteger("Experience.Gains.Multiplier.Global", 1);
|
xpGainMultiplier = readInteger("Experience.Gains.Multiplier.Global", 1);
|
||||||
toolsLoseDurabilityFromAbilities = readBoolean("Abilities.Tools.Durability_Loss_Enabled", true);
|
toolsLoseDurabilityFromAbilities = readBoolean("Abilities.Tools.Durability_Loss_Enabled", true);
|
||||||
|
@ -229,19 +229,22 @@ public class mcPlayerListener implements Listener
|
|||||||
switch(block.getType())
|
switch(block.getType())
|
||||||
{
|
{
|
||||||
case COBBLESTONE:
|
case COBBLESTONE:
|
||||||
if(LoadProperties.enableCobbleToMossy)
|
if(LoadProperties.enableCobbleToMossy) {
|
||||||
{
|
|
||||||
block.setType(Material.MOSSY_COBBLESTONE);
|
block.setType(Material.MOSSY_COBBLESTONE);
|
||||||
pass = true;
|
pass = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DIRT:
|
case DIRT:
|
||||||
|
if(LoadProperties.enableDirtToGrass) {
|
||||||
pass = true;
|
pass = true;
|
||||||
block.setType(Material.GRASS);
|
block.setType(Material.GRASS);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case SMOOTH_BRICK:
|
case SMOOTH_BRICK:
|
||||||
|
if(LoadProperties.enableSmoothToMossy) {
|
||||||
pass = true;
|
pass = true;
|
||||||
block.setData((byte)1);
|
block.setData((byte)1);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(pass == false)
|
if(pass == false)
|
||||||
|
@ -119,6 +119,8 @@ Skills:
|
|||||||
Level_Cap: 0
|
Level_Cap: 0
|
||||||
Green_Thumb:
|
Green_Thumb:
|
||||||
Cobble_To_Mossy: true
|
Cobble_To_Mossy: true
|
||||||
|
SmoothBrick_To_MossyBrick: true
|
||||||
|
Dirt_To_Grass: true
|
||||||
Mining:
|
Mining:
|
||||||
Level_Cap: 0
|
Level_Cap: 0
|
||||||
Requires_Pickaxe: true
|
Requires_Pickaxe: true
|
||||||
|
Loading…
Reference in New Issue
Block a user