βš”οΈ stewbeet.plugins.compatibilities.neo_enchant

πŸ“„ Source Code: stewbeet/plugins/compatibilities/neo_enchant/__init__.py πŸ”—

πŸ”— Dependencies

  • βœ… Required: Your definition plugin with vanilla_block configuration (see definitions_setup.md for details)
  • πŸ”§ Optional: NeoEnchant datapack (external dependency)
  • πŸ“‹ Related: Works with datapack.custom_blocks plugin ore functionality

πŸ“‹ Overview

The compatibilities.neo_enchant plugin provides integration with the NeoEnchant datapack's
veinminer functionality. It automatically detects when custom ore blocks use the
VANILLA_BLOCK_FOR_ORES configuration and adds the corresponding vanilla block
to NeoEnchant's veinminer block tag for proper mining compatibility.

Some Features Showcase

Automatic compatibility with Neo Enchant's veinminer enchant for custom ores:

🎯 Purpose

  • ⛏️ Enables veinminer functionality for custom ore blocks
  • πŸ”— Integrates custom ores with NeoEnchant's mining system
  • 🎯 Automatically detects ore block configurations
  • πŸ“‹ Adds vanilla ore blocks to veinminer tags
  • ⚑ Provides seamless mod compatibility
  • 🧱 Supports the optimized ore system using polished deepslate

βš™οΈ Configuration

🎯 Basic Example Configuration

pipeline: - ... - stewbeet.plugins.compatibilities.neo_enchant - ... # No specific configuration required - automatically detects ore usage

πŸ“‹ Configuration Options for item definitions

OptionTypeDefaultDescription
VANILLA_BLOCK_FOR_ORESconstantVanillaBlock(id="minecraft:polished_deepslate")The vanilla block used for ore optimization
Ore DetectionautomaticN/AAutomatically scans definitions for ore blocks

✨ Features

πŸ” Automatic Ore Detection

Scans item definitions to identify ore blocks using the optimized ore system:

  • 🎯 Detects items with VANILLA_BLOCK_FOR_ORES configuration
  • ⛏️ Identifies custom ore blocks automatically
  • 🧱 Focuses on polished deepslate-based ores
  • ⚑ Leverages the optimized ore system design

πŸ“‹ Veinminer Tag Generation

Creates the necessary block tag for NeoEnchant veinminer compatibility:

  • 🏷️ Generates enchantplus:veinminer block tag
  • 🧱 Adds minecraft:polished_deepslate to veinminer blocks
  • πŸ“¦ Uses proper JSON encoding and formatting
  • πŸ”— Integrates with NeoEnchant's tag system

⚑ Optimization Integration

Works seamlessly with the StewBeet ore optimization system:

  • 🎯 Leverages VANILLA_BLOCK_FOR_ORES constant
  • πŸ”§ Supports the polished deepslate optimization
  • ⛏️ Enables efficient veinmining of custom ores
  • πŸ›‘οΈ Maintains compatibility with ore break detection

πŸ”„ Conditional Activation

Only activates when relevant ore configurations are detected:

  • βœ… Checks for ore blocks in definitions before proceeding
  • ⚑ Minimal performance impact when no ores are present
  • 🎯 Smart detection based on vanilla block configuration
  • πŸ”§ Automatic compatibility setup only when needed