stewbeet.plugins.compatibilities.neo_enchant
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.
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
Some Features Showcase
Automatic compatibility with Neo Enchant's veinminer enchant for custom ores:
Source Code: stewbeet/plugins/compatibilities/neo_enchant/__init__.py
What it does
- 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 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 usageConfiguration 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 with the StewBeet ore optimisation 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
Next steps
- Using datapack libraries: the integrations this plugin targets.
- All plugins: the rest of the pipeline, in the order it runs.
- Configuring the build: enabling, ordering and configuring plugins.