0.17-pre
This commit is contained in:
@@ -4,6 +4,92 @@ import crafttweaker.events.IEventManager;
|
||||
import crafttweaker.event.BlockHarvestDropsEvent;
|
||||
import crafttweaker.event.IBlockEvent;
|
||||
import crafttweaker.world.IWorld;
|
||||
import crafttweaker.event.PlayerBreakSpeedEvent;
|
||||
|
||||
events.onPlayerBreakSpeed(function (event as PlayerBreakSpeedEvent) {
|
||||
if (!((event.player.currentItem.matches(<projecte:item.pe_rm_katar>)) || (event.player.currentItem.matches(<projecte:item.pe_rm_shears>)) || (event.player.currentItem.matches(<projecte:item.pe_dm_shears>)) )) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (("forestry:leaves.default.0".matches(event.block.definition.id))) {
|
||||
event.cancel();
|
||||
}
|
||||
|
||||
if (("forestry:leaves.default.1".matches(event.block.definition.id))) {
|
||||
event.cancel();
|
||||
}
|
||||
|
||||
if (("forestry:leaves.default.2".matches(event.block.definition.id))) {
|
||||
event.cancel();
|
||||
}
|
||||
|
||||
if (("forestry:leaves.default.3".matches(event.block.definition.id))) {
|
||||
event.cancel();
|
||||
}
|
||||
|
||||
if (("forestry:leaves.default.4".matches(event.block.definition.id))) {
|
||||
event.cancel();
|
||||
}
|
||||
|
||||
if (("forestry:leaves.default.5".matches(event.block.definition.id))) {
|
||||
event.cancel();
|
||||
}
|
||||
|
||||
if (("forestry:leaves.default.6".matches(event.block.definition.id))) {
|
||||
event.cancel();
|
||||
}
|
||||
|
||||
if (("forestry:leaves.default.7".matches(event.block.definition.id))) {
|
||||
event.cancel();
|
||||
}
|
||||
|
||||
if (("forestry:leaves.default.8".matches(event.block.definition.id))) {
|
||||
event.cancel();
|
||||
}
|
||||
|
||||
if (("forestry:leaves.default.fruit.0".matches(event.block.definition.id))) {
|
||||
event.cancel();
|
||||
}
|
||||
|
||||
if (("forestry:leaves.default.fruit.1".matches(event.block.definition.id))) {
|
||||
event.cancel();
|
||||
}
|
||||
|
||||
if (("forestry:leaves.default.fruit.2".matches(event.block.definition.id))) {
|
||||
event.cancel();
|
||||
}
|
||||
|
||||
if (("extratrees:leaves.default.0".matches(event.block.definition.id))) {
|
||||
event.cancel();
|
||||
}
|
||||
|
||||
if (("extratrees:leaves.default.1".matches(event.block.definition.id))) {
|
||||
event.cancel();
|
||||
}
|
||||
|
||||
if (("extratrees:leaves.default.2".matches(event.block.definition.id))) {
|
||||
event.cancel();
|
||||
}
|
||||
|
||||
if (("extratrees:leaves.default.3".matches(event.block.definition.id))) {
|
||||
event.cancel();
|
||||
}
|
||||
|
||||
if (("extratrees:leaves.default.4".matches(event.block.definition.id))) {
|
||||
event.cancel();
|
||||
}
|
||||
|
||||
if (("extratrees:leaves.default.5".matches(event.block.definition.id))) {
|
||||
event.cancel();
|
||||
}
|
||||
|
||||
if (("extratrees:leaves.default.6".matches(event.block.definition.id))) {
|
||||
event.cancel();
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
events.onBlockHarvestDrops(function (event as BlockHarvestDropsEvent) {
|
||||
|
||||
Reference in New Issue
Block a user