Archive eaglerforge-mods-evokerking1 (mod, 1.8.8, clean)

This commit is contained in:
2026-11-27 22:15:16 -06:00
parent 606dab7e6e
commit cb827cfeae
6 changed files with 76 additions and 0 deletions
@@ -0,0 +1,2 @@
# EaglerForge-mods
## A WIP(Work in Progress) mod that adds p!heal and spider hacks to climb like a spider.
File diff suppressed because one or more lines are too long
@@ -0,0 +1,27 @@
var PluginAPI = ModAPI
ModAPI.require("player");
PluginAPI.require("player");
ModAPI.require("displayToChat");
ModAPI.addEventListener("sendchatmessage"(message:"p!heal"), heal());
ModAPI.addEventListener("key"(key:"35"), heal());
ModAPI.addEventListener("update", spiderListener);
function heal() {
ModAPI.LocalPlayerData.setPlayerSPHealth({health: 20}) ;
ModAPI.displayToChat({msg: "Healing"});
}
function spiderListener() {
if (PluginAPI.player.isCollidedHorizontally) {
PluginAPI.player.motionY += 0.2;
PluginAPI.player.reload();
}
}
@@ -0,0 +1 @@
ModAPI.require("player"); //We need to add vertical velocity var jetpackActive = false; //Variable to track wether or not the jetpack is active window.addEventListener("keydown", (event) => { //When a key is pressed if (event.key.toLowerCase() === "h") { //If the key is h jetpackActive = true; //Set jetpack to be active } }); window.addEventListener("keyup", (event) => { //When a key is released if (event.key.toLowerCase() === "h") { //If the key is h jetpackActive = false; //Set jetpack to be inactive } }); ModAPI.addEventListener("update", ()=>{ //Every client tick if(!jetpackActive){ //If the jetpack is not active return; //Exit } ModAPI.player.motionY += 0.2; //Add 0.2 to the players vertical moition ModAPI.player.reload(); //Push changes });