Skip to content
This repository was archived by the owner on Jun 25, 2026. It is now read-only.
This repository was archived by the owner on Jun 25, 2026. It is now read-only.

https://github.com/MooMooForge/MooMoo.io-Scripts/blob/master/MooMooForge/Auto-Heal.user.js #9

Description

@cannonhardisty40-star

// ==UserScript==
// @name MooMoo.io simple autoheal
// @Version 1.2
// @description MooMoo.js autoheal
// @author Nuro
// @match ://.moomoo.io/*
// @require https://greasyfork.org/scripts/456235-moomoo-js/code/MooMoojs.js?version=1144738
// @updateURL https://greasyfork.org/scripts/458804/code.user.js
// @downloadurl https://greasyfork.org/scripts/458804/code.user.js
// @run-at document-end
// ==/UserScript==
/*
Support us on social media (follow and leave a star)

GitHub: https://moomooforge.github.io/MooMoo.js/
Author: https://github.com/NuroC
YouTube: https://www.youtube.com/@nuro9607
Discord: https://discord.gg/NMS3YR9Q5R
*/

const AUTOHEAL_SPEED = 100 // make lower if you clown too fast

// https://nuroc.github.io/MooMoo.js/#installing-and-getting-started
const MooMoo = (function MooMooJS_beta() {})[69]

// https://github.com/NuroC/moomoo-in-depth/tree/main/protocol/server#updatehealth
MooMoo.addEventListener("updatehealth", (data) => {
let sid = data[0]
let health = data[1]

// https://nuroc.github.io/MooMoo.js/Player#accessing-player-data-and-information
if (MooMoo.myPlayer.sid === sid && health < 100) {

    // https://nuroc.github.io/MooMoo.js/Player#accessing-player-data-and-information
    let food = MooMoo.myPlayer.inventory.food;

    // https://nuroc.github.io/MooMoo.js/Player#placing-items
    setTimeout(() => {
        MooMoo.myPlayer.place(food)
    }, AUTOHEAL_SPEED)
}

})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions