9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-22 16:39:36 +00:00
This commit is contained in:
Xiao-MoMi
2022-07-08 21:55:44 +08:00
parent b8a365c7ab
commit 904767188b
3 changed files with 10 additions and 12 deletions

View File

@@ -31,7 +31,7 @@ public class BreakBlock implements Listener {
Player player =event.getPlayer(); Player player =event.getPlayer();
Location location = event.getBlock().getLocation(); Location location = event.getBlock().getLocation();
for (Integration integration : ConfigReader.Config.integration){ for (Integration integration : ConfigReader.Config.integration){
if(!integration.canPlace(location, player)) return; if(!integration.canBreak(location, player)) return;
} }
if(player.getInventory().getItemInMainHand().containsEnchantment(Enchantment.SILK_TOUCH) || player.getInventory().getItemInMainHand().getType() == Material.SHEARS){ if(player.getInventory().getItemInMainHand().containsEnchantment(Enchantment.SILK_TOUCH) || player.getInventory().getItemInMainHand().getType() == Material.SHEARS){
event.setCancelled(true); event.setCancelled(true);

View File

@@ -45,9 +45,9 @@ crops:
3: customcrops:cabbage_golden_star 3: customcrops:cabbage_golden_star
gigantic: customcrops:gigantic_cabbage gigantic: customcrops:gigantic_cabbage
gigantic-chance: 0.01 gigantic-chance: 0.01
requirements: season:
season: - spring
- spring
grape: grape:
amount: 2~4 amount: 2~4
@@ -57,9 +57,8 @@ crops:
3: customcrops:grape_golden_star 3: customcrops:grape_golden_star
#空手收获后返回第几个生长状态 #空手收获后返回第几个生长状态
return: customcrops:grape_stage_4 return: customcrops:grape_stage_4
requirements: season:
season: - autumn
- autumn
corn: corn:
amount: 1~2 amount: 1~2
@@ -67,7 +66,6 @@ crops:
1: customcrops:corn 1: customcrops:corn
2: customcrops:corn_silver_star 2: customcrops:corn_silver_star
3: customcrops:corn_golden_star 3: customcrops:corn_golden_star
requirements: season:
season: - autumn
- autumn - summer
- summer

View File

@@ -1,5 +1,5 @@
name: CustomCrops name: CustomCrops
version: '1.5.6' version: '1.5.7'
main: net.momirealms.customcrops.CustomCrops main: net.momirealms.customcrops.CustomCrops
api-version: 1.16 api-version: 1.16
depend: depend: