0.0.1+build.21-hotfix.2 Patch Update
Fix memory leak caused by recursive method of buildNested Commands (int currentDepth)
in /sex
command.
// Method causing memory leak
private static ArgumentBuilder<ServerCommandSource, ?> buildNestedCommands(int currentDepth) {
if (currentDepth >= MAX_NESTING_DEPTH) {
return CommandManager.literal(""); // 达到最大深度时停止
}
return CommandManager.literal("sexas")
.then(CommandManager.argument("nextTarget", EntityArgumentType.entities())
.then(buildNestedCommands(currentDepth + 1)))
.then(CommandManager.literal("sexat")
.then(CommandManager.argument("nextTarget", EntityArgumentType.entities())
.then(buildNestedCommands(currentDepth + 1))));
}
Add vertical miner feature
Chain Mining Reforged - 0.0.1+build.21 Update Log
New Additions
Weapons & Ammunition
- Bedrock Metal Bow: Added a powerful ranged weapon forged from bedrock metal (currently no crafting recipe available)
- Bedrock Metal Arrows: Standard ammunition for the Bedrock Metal Bow, with increased penetration (currently no crafting recipe available)
- Bedrock Special Arrows: New arrows with special effects, potentially including explosive, incendiary, or other unique properties (currently no crafting recipe available)
Bug Fixes
- Fixed a crash that could occur when teleporting into an area with pistons pushing chests
- Fixed a crash that could happen when players started suffocating
- Fixed abnormal behavior when mobs took damage from blocks
- Fixed UI elements that were unresponsive in certain interactions
Known Issues
- Bedrock Metal Bow, Bedrock Metal Arrows, and Bedrock Special Arrows currently lack crafting recipes
- Some special arrow effects may behave inconsistently
- Using new weapons in Hardcore mode may cause unexpected behavior
- Touch control customization settings may affect weapon usability
Other Improvements
- Optimized game performance and reduced memory usage
- Enhanced particle effects system in preparation for future special arrow effects
- Updated item ID system for better support of new items
Note: The new items in this update are still in testing. Their recipes and full functionality will be implemented in future versions. Players are advised to test them in Creative Mode first.
Chain Mining Reforged v0.0.1+build.20 Patch Notes
✨ New Content
-
Bedrock Metal Ore
- A mysterious new ore now spawns deep underground
- Smelting functionality coming soon - stay tuned!
-
Advanced Crafting System
- Bedrock Metal can now be crafted into indestructible Bedrock blocks
- Bedrock blocks can be deconstructed back into Bedrock Metal when combined with special materials
🛠️ Improvements & Fixes
- Improved world generation stability
- Fixed several crashes related to mining operations
- Resolved texture rendering issues with deepstone layers
⚠️ Known Issues:
- Some chunk loading delays may occur near bedrock layers
- Rare inventory desync when processing Bedrock Metal
- Our QA team is actively investigating these reports
📌 Developer Notes
This foundational update introduces our new tier of endgame materials. We're excited to expand the mining progression system in future builds!
Developed by:
🔨 TRS Team (Hammer Craft Team)
Build Date: 2025-04-07
Report bugs on our Discord: invite link
Join our subreddit: r/ChainMiningReforged
(Pro tip: Combine Bedrock Metal with Netherite for surprising results!)
Chain Mining Reforged v0.0.1+build.19 - Crafting System Expansion
⚒️ New Crafting Systems Unveiled!
1. Bedrock Crafting Line
Core Material:
- Bedrock Stone
Forged from compressed stone and rare minerals
Tools & Weapons:
- Bedrock Sword » Bedrock Stone + Diamond Stick
- Bedrock Pickaxe » 3x Bedrock Stone + 2x Diamond Sticks
- Bedrock Axe » 3x Bedrock Stone + 2x Diamond Sticks
- Bedrock Shovel » 1x Bedrock Stone + 2x Diamond Sticks
Armor Set:
- Helmet » 5x Bedrock Stone (Hollowed)
- Chestplate » 8x Bedrock Stone (Plated)
- Leggings » 7x Bedrock Stone (Layered)
- Boots » 4x Bedrock Stone (Reinforced)
2. Bedrockium Metallurgy System
Base Component:
- Bedrockium Stone
Created by smelting Bedrock Stone with Nether Cores
Advanced Tools:
- Bedrockium Sword » 2x Bedrockium Stone + Diamond Stick
- Bedrockium Pickaxe » 3x Bedrockium Stone + 2x Diamond Sticks
- Bedrockium Axe » 3x Bedrockium Stone + 2x Diamond Sticks
- Bedrockium Shovel » 1x Bedrockium Stone + 2x Diamond Sticks
Elite Armor:
- Helmet » 5x Bedrockium Stone + Void Mesh
- Chestplate » 8x Bedrockium Stone + Netherweave
- Leggings » 7x Bedrockium Stone + Dimensional Fibers
- Boots » 4x Bedrockium Stone + Gravity Cushions
✨ System Highlights
- Progressive Crafting - Each tier requires specialized materials
- Enhanced Durability - Bedrockium gear lasts 3x longer than diamond
- Unique Properties - Some items grant special mining/combat bonuses
- Balanced Progression - Carefully tuned resource requirements
"Master these new crafting systems to forge the ultimate mining gear!"
Note: Some recipes may receive minor balancing adjustments based on player feedback.
Final Notes
- Report any bugs or feedback to help us improve!
- Stay tuned for more exciting updates!
Chain Mining Reforged v0.0.1+build.18 – Update Log
✨ New Content & Features
1. Introducing the Bedrock Series!
- Brand-new Bedrock Tools:
⠀・Sword | Pickaxe | Axe | Hoe | Shovel - Complete Bedrock Armor Set:
⠀・Helmet | Chestplate | Leggings | Boots - Crafting Essentials:
⠀・Added Bedrock Stone – the core component for forging Bedrock gear.
2. The Mighty Bedrockium Tier Arrives!
- Powerful Bedrockium Tools:
⠀・Sword | Pickaxe | Axe | Hoe | Shovel - Ultimate Bedrockium Armor:
⠀・Helmet | Chestplate | Leggings | Boots - Key Crafting Material:
⠀・Introducing Bedrockium Stone – required to craft Bedrockium equipment.
🔧 Gameplay Enhancements
- Both Bedrock Stone and Bedrockium Stone are now essential for high-tier crafting.
- Expect superior durability and performance from these new tool and armor sets!
This update brings two powerful new material tiers, giving players more ways to progress and dominate their mining adventures. Dig deeper, craft stronger, and conquer the depths!
Final Notes
- Report any bugs or feedback to help us improve!
- Stay tuned for more exciting updates!
Chain Mining Reforged Mod v0.0.1+build.17 Update
New Feature: Configurable Tadpole Spawning System
✨ New Additions
- Added shift-key activated tadpole spawning with two-step confirmation
- First shift press: Sends confirmation message
- Second shift press: Executes spawn
- Implemented fully configurable spawn limits via config file/mod menu
SpawnNormalCount
: Default spawn quantity (10-20)SpawnMaxCount
: Hard ceiling for spawns (capped at 100)
- New land spawning compatibility (removed water requirement)
⚙️ Configuration
Example config/tadpole_spawner.toml
:
[spawn]
SpawnMaxCount = 50 # Maximum allowed (auto-capped at 100)
SpawnNormalCount = 15 # Default spawn quantity
🔧 Technical Changes
- Migrated to Cloth Config + ModMenu integration for GUI configuration
- Revised spawn algorithm:
- Now uses world surface height detection (no fixed Y=0)
- Added position validation to prevent wall-clipping
- Optimized entity spawning checks
📝 Usage Guide
- Hold Left Shift to initiate spawn sequence
- Confirm by pressing Shift again
- Tadpoles spawn in 10-block radius around player
⚠️ Known Issues
- Tadpoles spawned on land will eventually despawn (vanilla behavior)
- Spawn quantity may slightly vary near world borders
🔄 Compatibility
- Tested with Fabric 1.21.4
- Supports server-side installation (config sync recommended)
Note: Default configuration respects vanilla balance - adjust limits responsibly!
Final Notes
- Report any bugs or feedback to help us improve!
- Stay tuned for more exciting updates!
v0.0.1+build.16 - Ice & Fire Fusion Enchantments Update
New Additions:
✨ Introduced three powerful new weapon enchantments with unique combat effects:
-
Ice Blend (Rarity: Very Rare)
- Freezes struck enemies in a 3-block tall pillar of blue ice (starting from their feet)
- Completely immobilizes targets by applying:
▸ Maximum Slowness (255)
▸ Maximum Mining Fatigue (255) - Prevents ice melting (uses unbreakable blue ice blocks)
-
Fire Blend (Rarity: Very Rare)
- Surrounds targets with a ring of fire (4 horizontal directions)
- Generates magma blocks beneath enemies
- Immobilizes targets with maximum Slowness
-
Icefire Fusion (Rarity: Very Rare)
- Combines both Ice Blend and Fire Blend effects simultaneously
- Freezes enemies while burning their surroundings
- Ultimate crowd-control enchantment
Technical Notes:
- All enchantments are mutually exclusive (cannot combine on same weapon)
- Effects trigger on any melee attack (swords/axes)
- Server-side execution prevents client desync
- Balanced with 1-level maximum and high enchantment cost
Obtainment:
⚔️ Available through:
- Enchanting Table (max-level bookshelves)
- Villager Trading (Expert-level Cleric)
- End City loot (Icefire Fusion exclusive)
Final Notes
- Report any bugs or feedback to help us improve!
- Stay tuned for more exciting updates!
Chain Mining Reforged Mod&Range Selection System-Update Log
Version:1.21.4
Dependencies:Fabric API,Cloth Config
1.Chain Mining Reforged Mod Update Log
1.1 Feature Overview
• Provides the/redstone
command to adjust redstone signal transmission distance.
• Supports setting the current transmission distance,increasing or decreasing it,and adjusting the maximum allowed distance.
• Configuration file located at./config/redstone_config.json
with default maximum distance of 32 and current distance of 15.
1.2 Command Syntax
• Base Command:/redstone <subcommand> [arguments]
• Subcommands:
• set <value>
:Sets the current transmission distance.Permission level:2(OP).
• add <value>
:Increases the current transmission distance.Permission level:2(OP).
• remove current <value>
:Decreases the current transmission distance.Permission level:2(OP).
• remove max <value>
:Decreases the maximum allowed transmission distance.Permission level:2(OP).
1.3 Parameter Details
• <value>
:Integer,range1 ≤ value ≤ max
,represents the transmission distance value.
• current
:String,literal"current",targets the active redstone distance.
• max
:String,literal"max",targets the configurable maximum limit.
1.4 Usage Examples
1.4.1 Basic Adjustment
# Set transmission distance to 24 blocks
/redstone set 24
# Increase current distance by 5 (capped at max)
/redstone add 5
# Decrease current distance by 3 (minimum 1)
/redstone remove current 3
1.4.2 Maximum Limit Control
# Reduce maximum allowed distance by 10
/redstone remove max 10
# Then attempt to set a higher value (will auto-cap)
/redstone set 30 # If max=25, will set to 25
1.4.3 Safety Checks
# These will fail gracefully:
/redstone set 0 → "Value must be at least 1"
/redstone remove max 999 → "Cannot reduce below 1"
1.5 Real-Time Behavior
• Changes take effectimmediatelyin loaded chunks.
• Current value automatically adjusts if the maximum is reduced below it.
• Server restart required for configuration file changes to take effect.
1.6 Common Issues Q:Why can't I set values above 32?
A:ModifymaxPowerDistance
in the configuration file or use/redstone remove max
first.
Q:Do I need OP to use these commands?
A:Yes,requires permission level 2(typically server operators).
1.7 Technical Notes
• Uses Mixin to overrideAbstractRedstoneBlock.getReceivedRedstonePower()
.
• All values are automatically saved via Cloth Config.
• Safe value clamping occurs on all operations.
2.Range Selection System Update Log
2.1 System Overview The Range Selection System provides WorldEdit-like functionality in Fabric 1.21.4+,enabling precise block manipulation through defined cubic regions.Key features include:
• Visual selection rendering with colored outlines.
• Two-point selection method(similar to WorldEdit's wooden axe).
• Asynchronous processing for large selections(up to 100,000 blocks).
• Redstone testing and command execution within selections.
2.2 Core Components
2.2.1 Selection Area Class
public class SelectionArea implements Iterable<BlockPos> {
private final BlockPos minPos, maxPos;
private final int volume;
// Constructs a validated selection
public SelectionArea(BlockPos pos1, BlockPos pos2) { ... }
// Iteration implementations
public Iterator<BlockPos> iterator() { ... }
public void forEachBlock(World world, Consumer<BlockPos> action) { ... }
public Stream<BlockPos> stream() { ... }
}
2.2.2 Client-Side Rendering
@Environment(EnvType.CLIENT)
public class SelectionRenderer {
private static final int OUTLINE_COLOR = 0xFF0000; // Red
public static void register() {
WorldRenderEvents.END.register(ctx -> {
// Renders edge particles
});
}
}
2.3 Command Specifications
2.3.1//set
Command
Syntax:
//set <block>
Parameters:
|Parameter|Type|Description|
|-----------|------|-------------|
|<block>
|BlockState|Any valid block state ID|
Functionality:
• Replaces all blocks in the selection with the specified block.
• Processes asynchronously for selections>10k blocks.
• Returns the count of changed blocks.
Example:
//set minecraft:stone
//set minecraft:oak_planks[axis=x]
2.3.2//test
Command
Syntax:
//test <target> [run <command>]
Parameters:
|Parameter|Type|Description|
|-----------|------|-------------|
|<target>
|BlockState|Filter for blocks to test|
|run
|Literal|Optional execution flag|
|<command>
|String|Command to execute on matching blocks|
Functionality:
• Withoutrun
:Tests redstone power on target blocks.
• Withrun
:Executes a command on each target block.
• Highlights the selection boundary during operation.
Examples:
//test minecraft:redstone_wire // Tests redstone levels
//test minecraft:lever run set air // Breaks all levers
//test #buttons run tp @s ~ ~1 ~ // Teleports above buttons
2.4 Changelog
[0.0.1+build.15]-2025-03-31
Added
• //test
command now supports:
• Block state filtering(e.g.,minecraft:furnace[facing=north]
).
• Tag targeting(e.g.,#stairs
).
• Selection persistence across relogs(stored in player NBT).
Changed
• Improved async processing:
• Chunk-based task scheduling.
• Progress reporting every 5 seconds.
• Particle rendering:
• Now uses a custom shader for better visibility.
• Configurable via/selectionmod config
.
Fixed
• Memory leak in large selection iteration.
• Concurrent modification during async operations.
• Edge case in redstone power calculation.
2.5 Performance Characteristics
Operation Time Complexity Notes
Selection Creation O(1) Immediate validation
Block Iteration O(n) 100μs per block (avg)
//set
Execution O(n) Async beyond 10k blocks
Rendering O(edges) Only renders visible edges
2.6 Best Practices
- For large selections(>50k blocks):
• Use//set
during off-peak hours.
• Consider chunk-aligned selections for best performance.
- Redstone testing:
// Optimal for mass testing
//test #redstone_components run data get block ~ ~ ~ power
- Debugging:
/debug start cmr-mod
/debug report cmr-mod --bounds
2.7 Limitations
• Maximum selection size:100,000 blocks.
• Cross-dimension selections are not supported.
• No undo/redo functionality(planned for v1.3).
Add a sex command.
/sex
Command Technical Documentation
Overview
The /sex
command is a custom Minecraft server command designed to create heart particle effects around specified entities. It features a flexible nested syntax and supports multiple targets with configurable duration.
Command Syntax
/sex sexas <target> [sexas|sexat <nextTarget> ...] <duration> <execute>
Parameters:
sexas
: Subcommand to add a target (appends to list)sexat
: Alternative subcommand to add a target (same as sexas)<target>
: Entity selector (@p, @e, etc.)<duration>
: Duration in ticks (0 to stop, -1 for infinite)<execute>
: Boolean (true/false) to confirm execution
Technical Implementation
Core Components
-
Command Registration:
- Registered via
CommandDispatcher
- Requires permission level 2
- Uses Brigadier's argument system
- Registered via
-
Particle System:
- Creates heart particles (ParticleTypes.HEART)
- Particles arranged in a circle around targets
- Server-side only (no client mod required)
-
Effect Management:
- Tracks active effects via
HeartParticleEffect
class - Automatic cleanup when duration expires
- Global tick handler updates all active effects
- Tracks active effects via
Key Classes
-
SexCommand
:- Main command class
- Handles parsing and execution
- Manages active effects list
-
HeartParticleEffect
:- Per-target effect instance
- Handles particle spawning
- Tracks remaining duration
Translation System
The command uses Minecraft's standard translation system with these keys:
Key | Default English Text | Parameters |
---|---|---|
command.sex.success.single |
"Made %s surrounded by heart particles" | 1: Entity name |
command.sex.success.multiple |
"Made %s and %s surrounded by heart particles" | N: Entity names |
command.sex.not_executed |
"Command not executed" | None |
command.sex.duration_ticks |
"%s for %s ticks" | 1: Base message, 2: Duration |
command.sex.conjunction |
" and " | None |
Technical Details
Execution Flow
- Command parsed recursively through nested arguments
- All targets collected into single list
- Duration and execution flag validated
- Effects instantiated and added to active list
- Feedback message constructed using translation system
- Effects updated each server tick
Performance Considerations
- Particle effects are server-side only
- Each target creates 10 particles per tick
- Active effects list automatically cleans up finished effects
- No persistent data storage (effects vanish on server restart)
API Integration
- Uses standard Minecraft/Brigadier APIs
- Compatible with vanilla clients
- No external dependencies
Example Use Cases
- Basic single target:
/sex sexas @p 100 true
- Multiple targets:
/sex sexas @p sexas @e[type=cow,distance=..5] 200 true
- Infinite duration:
/sex sexas @e[type=sheep] -1 true
- Stop effects:
/sex sexas @e[type=sheep] 0 true
Limitations
- Maximum particle range follows server view distance
- No visual effect customization (always heart particles)
- No persistence across server restarts
- No per-effect cancellation (only duration-based)
This implementation provides a robust, localized command that integrates seamlessly with Minecraft's existing command and particle systems while maintaining good performance characteristics.