βοΈ stewbeet.plugins.compatibilities.neo_enchant
π Source Code: stewbeet/plugins/compatibilities/neo_enchant/__init__.py π
π Dependencies
- β
Required:
Your definition pluginwithvanilla_blockconfiguration (seedefinitions_setup.mdfor details) - π§ Optional: NeoEnchant datapack (external dependency)
- π Related: Works with
datapack.custom_blocksplugin 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
| Option | Type | Default | Description |
|---|---|---|---|
VANILLA_BLOCK_FOR_ORES | constant | VanillaBlock(id="minecraft:polished_deepslate") | The vanilla block used for ore optimization |
| Ore Detection | automatic | N/A | Automatically 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_ORESconfiguration - βοΈ 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:veinminerblock tag - π§± Adds
minecraft:polished_deepslateto 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_ORESconstant - π§ 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