mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
2.1.39 - Added Seagrass/Tall_Seagrass to experience tables
Salvage should sound a bit different to Repair now Fixes #3863 #3862
This commit is contained in:
parent
f7b07899c1
commit
f1204f8a2a
@ -7,6 +7,12 @@ Key:
|
|||||||
! Change
|
! Change
|
||||||
- Removal
|
- Removal
|
||||||
|
|
||||||
|
Version 2.1.39
|
||||||
|
Salvaging an item should now only play the item break sound (was playing the anvil sound simultaneously before)
|
||||||
|
Fixed bug where Tall_Grass was not giving full XP
|
||||||
|
Added Tall_Seagrass and Seagrass to experience.yml under Herbalism (update your configs)
|
||||||
|
|
||||||
|
NOTE: This is what your herbalism section in experience.yml should look like - https://paste.gg/p/anonymous/d5b03bd56e8442f2836f8a954d2974de
|
||||||
Version 2.1.38
|
Version 2.1.38
|
||||||
Roll XP cooldown down from 60 seconds to 10
|
Roll XP cooldown down from 60 seconds to 10
|
||||||
Updated pt_BR localization (thanks FabioZumbi12)
|
Updated pt_BR localization (thanks FabioZumbi12)
|
||||||
|
2
pom.xml
2
pom.xml
@ -2,7 +2,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
||||||
<artifactId>mcMMO</artifactId>
|
<artifactId>mcMMO</artifactId>
|
||||||
<version>2.1.38</version>
|
<version>2.1.39</version>
|
||||||
<name>mcMMO</name>
|
<name>mcMMO</name>
|
||||||
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
||||||
<scm>
|
<scm>
|
||||||
|
@ -125,8 +125,7 @@ public class HerbalismManager extends SkillManager {
|
|||||||
public void herbalismBlockCheck(BlockState blockState) {
|
public void herbalismBlockCheck(BlockState blockState) {
|
||||||
Player player = getPlayer();
|
Player player = getPlayer();
|
||||||
Material material = blockState.getType();
|
Material material = blockState.getType();
|
||||||
boolean oneBlockPlant = !(material == Material.CACTUS || material == Material.CHORUS_PLANT
|
boolean oneBlockPlant = isOneBlockPlant(material);
|
||||||
|| material == Material.SUGAR_CANE || material == Material.KELP_PLANT || material == Material.KELP);
|
|
||||||
|
|
||||||
// Prevents placing and immediately breaking blocks for exp
|
// Prevents placing and immediately breaking blocks for exp
|
||||||
if (oneBlockPlant && mcMMO.getPlaceStore().isTrue(blockState)) {
|
if (oneBlockPlant && mcMMO.getPlaceStore().isTrue(blockState)) {
|
||||||
@ -176,6 +175,12 @@ public class HerbalismManager extends SkillManager {
|
|||||||
applyXpGain(xp, XPGainReason.PVE);
|
applyXpGain(xp, XPGainReason.PVE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isOneBlockPlant(Material material) {
|
||||||
|
return !(material == Material.CACTUS || material == Material.CHORUS_PLANT
|
||||||
|
|| material == Material.SUGAR_CANE || material == Material.KELP_PLANT || material == Material.KELP
|
||||||
|
|| material == Material.TALL_SEAGRASS || material == Material.TALL_GRASS);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check for success on herbalism double drops
|
* Check for success on herbalism double drops
|
||||||
* @param blockState target block state
|
* @param blockState target block state
|
||||||
|
@ -131,7 +131,7 @@ public class SalvageManager extends SkillManager {
|
|||||||
|
|
||||||
// BWONG BWONG BWONG - CLUNK!
|
// BWONG BWONG BWONG - CLUNK!
|
||||||
if (Config.getInstance().getSalvageAnvilUseSoundsEnabled()) {
|
if (Config.getInstance().getSalvageAnvilUseSoundsEnabled()) {
|
||||||
SoundManager.sendSound(player, player.getLocation(), SoundType.ANVIL);
|
// SoundManager.sendSound(player, player.getLocation(), SoundType.ANVIL);
|
||||||
SoundManager.sendSound(player, player.getLocation(), SoundType.ITEM_BREAK);
|
SoundManager.sendSound(player, player.getLocation(), SoundType.ITEM_BREAK);
|
||||||
|
|
||||||
//player.playSound(player.getLocation(), Sound.ENTITY_ITEM_BREAK, 1.0F, 1.0F);
|
//player.playSound(player.getLocation(), Sound.ENTITY_ITEM_BREAK, 1.0F, 1.0F);
|
||||||
|
@ -262,6 +262,8 @@ Experience:
|
|||||||
Brown_Mushroom_Block: 70
|
Brown_Mushroom_Block: 70
|
||||||
Mushroom_Stem: 80
|
Mushroom_Stem: 80
|
||||||
Herbalism:
|
Herbalism:
|
||||||
|
Seagrass: 10
|
||||||
|
Tall_Seagrass: 10
|
||||||
Kelp: 3
|
Kelp: 3
|
||||||
Kelp_Plant: 3
|
Kelp_Plant: 3
|
||||||
Tube_Coral_Fan: 80
|
Tube_Coral_Fan: 80
|
||||||
|
Loading…
Reference in New Issue
Block a user