If you are actively crafting a Heavenly Potion at Mari’s Cauldron in Sol’s RNG, the macro can seamlessly work around the open crafting menu. Before using your Biome Randomizer or Strange Controller, it detects the open menu and closes it, uses the item, then automatically reopens the recipe, fills in the correct ingredient quantities, and clicks Craft — all without manual intervention. This lets the macro run item cooldowns continuously even while a long Heavenly Potion craft is in progress.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Flyingbacen/Sols-Biome-Randomizer-Macro/llms.txt
Use this file to discover all available pages before exploring further.
How It Works
Every call toUseItem() runs two pixel checks against the active Roblox window before opening the inventory:
Step 1 — Detect an open crafting menu
The pixel at coordinate (1850, 180) is checked. This position corresponds to the close button of Mari’s Cauldron crafting panel. If the colour at that pixel is0xFFFFFF (white), a crafting menu is open.
The BypassCraftClose toggle in settings.ini can force this branch to always be taken, regardless of the pixel result — useful if the close-button pixel check gives false negatives on your display.
Step 2 — Detect a Heavenly Potion craft specifically
If a menu is open, the pixel at (248, 592) is checked. A colour of0xFF98DC (a pink/magenta tint) indicates that a Heavenly Potion craft buff is active — meaning the in-progress recipe is specifically a Heavenly Potion.
Step 3 — Close, use item, reopen
With crafting state recorded, the macro:- Clicks the crafting close button at (
CraftCloseX,CraftCloseY) — defaults to (1850, 180). - Proceeds with the normal inventory flow to use the Biome Randomizer or Strange Controller.
- Closes the inventory and presses
fto reopen Mari’s Cauldron recipe menu (this key shortcut is specific to Mari’s Cauldron).
Step 4 — Resume the Heavenly Potion recipe (if detected)
IfCraftingHeavenly was set to true in Step 2, the macro continues:
- Clicks at the computed position
(Integer(A_ScreenWidth / 1.2), A_ScreenHeight // 2)to focus the crafting recipe list panel. - Scrolls down 10 steps with
Send("{WheelDown 10}")to reach the Heavenly Potion entry. - Clicks the Heavenly Potion entry at (
HPCraftMenuX,HPCraftMenuY). - Clicks Open Recipe at (
OpenRecipeMenuX,OpenRecipeMenuY). - Adds ingredients:
Ingredients Added Automatically
| Ingredient | Action |
|---|---|
| Lucky Potions | Clicks the amount field at (HPLuckyPotionsAmountX, HPLuckyPotionsAmountY), selects all with ^a, types HPLuckyPotionsAmount (default: 250), then clicks the Add button at (HPLuckyPotionsAddX, HPLuckyPotionsAddY) |
| Celestial | Clicks the Add button at (HPCelestialAddX, HPCelestialAddY) twice with a 100 ms pause between clicks |
| Exotic | Clicks the Add button at (HPExoticAddX, HPExoticAddY) once |
CraftButtonX, CraftButtonY).
Configuration
All coordinates for Heavenly Potion crafting are stored under[Crafting\Heavenly] in settings.ini. Refer to the Coordinates page for the full list of keys and their default values.
The most commonly adjusted settings are:
BypassCraftClose Toggle
SettingBypassCraftClose=true under [Toggles] makes the macro always attempt to close the crafting menu before using an item — skipping the 0xFFFFFF pixel check entirely. Enable this if the close-button pixel check is returning false negatives and the macro is trying to open the inventory while the crafting panel is still on screen.
The crafting resume feature only works with Mari’s Cauldron. After using an item, the macro reopens the crafting interface by sending the
f key, which is the keyboard shortcut specific to Mari’s Cauldron. Other crafting stations use different shortcuts or none at all — the f key press will do nothing (or trigger an unrelated action) if you are at a different station.