Description
Are you tired of players complaining about their chest UI forcefully closing every time you use the /clone command to refill items? Say goodbye to this vanilla Minecraft limitation!
The Seamless Clone & Auto Refill Addon introduces a powerful custom /scriptevent command that perfectly replicates the clone mechanic but operates entirely through the Bedrock Script API. This means you can infinitely refill chests, crates, and containers right in front of the players without closing their inventory screen.
🌟 Key Features
No GUI Force-Close: Refill items while players are actively looking inside the chest!
Multiple Container Support: Assign unique IDs to different chests (1, 2, 3...) for organized and independent auto-refilling.
Familiar Syntax: The command structure is almost identical to the vanilla /clone command, making it incredibly easy to learn.
Lag Friendly: Optimized using the latest @minecraft/server API for smooth server performance.
Perfect For: Kit PvP arenas, Minigame lobbies, Server shops, and Survival auto-farms.
🛠️ How to Use (Command Guide)
Instead of the traditional clone command, use the custom script event. The structure is simple:
scriptevent sg:area <Container_ID> <x1> <y1> <z1> <x2> <y2> <z2> <x_dest> <y_dest> <z_dest>
Example 1: Setting up your first auto-refill chest
/scriptevent sg:area 1 10 0 10 10 0 10 5 0 5
(This takes the container at 10 0 10, assigns it as ID 1, and seamlessly clones its contents to 5 0 5.)
Example 2: Setting up a second independent chest
/scriptevent sg:area 2 20 0 20 20 0 20 15 0 15
(Uses ID 2 for a completely different container area, preventing any overlap.)
Simply put this command in a repeating command block (or function) on a timer, and your infinite chests will work flawlessly without ever interrupting a player's gameplay!
⚠️ Requirements
Ensure Beta APIs (or specific experiment toggles if required) are enabled in your World Settings.
Apply the Behavior Pack to your world/realm before joining.


