Archive mursmods (mod, 1.8.8, clean)

This commit is contained in:
2026-11-28 00:55:29 -06:00
parent a5b6200bd9
commit 1b805b14a6
9 changed files with 376 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
(() => {
ModAPI.require("settings");
var oldFPS = 260;
function fcs(){
if(ModAPI.settings != null){
if(ModAPI.settings.limitFramerate != null){
ModAPI.settings.limitFramerate = oldFPS;
ModAPI.settings.reload();
}
}
}
function blr(){
if(ModAPI.settings != null){
if(ModAPI.settings.limitFramerate != null){
oldFPS = ModAPI.settings.limitFramerate;
ModAPI.settings.limitFramerate = 5;
ModAPI.settings.reload();
}
}
}
addEventListener("focus",fcs);
addEventListener("blur",blr);
})();
Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

+42
View File
@@ -0,0 +1,42 @@
ModAPI.require("network");
function chatHandler(ev){
console.log(ev)
if(ev.message.startsWith(">")){
ev.preventDefault = true;
if(ev.message.startsWith(">crash")){
startCrash()
}
else if(ev.message.startsWith(">stopcrash")){
stopCrash()
}
}
}
var inter = null;
function startCrash() {
if(inter == null){
ModAPI.displayToChat({msg:"STARTING!!!"})
inter = setInterval(function(){
ModAPI.displayToChat({msg:"SENDING PACKETS!!!!"});
if(ModAPI.network == null){
stopCrash()
}
for(let i = 0; i < 30000; i++){
ModAPI.network.sendPacketAnimation();
}},2500)
}
}
function stopCrash() {
if(inter != null){
ModAPI.displayToChat({msg:"KILLING!!!"})
clearInterval(inter);
inter = null;
}
}
ModAPI.addEventListener("sendchatmessage",chatHandler)
+61
View File
@@ -0,0 +1,61 @@
function createButton(x,y,w,h,mult,text,up,down){
var btn = document.createElement("div");
btn.style.position = "fixed";
btn.onmousedown = down;
btn.onmouseup = up;
btn.style.fontFamily = "monospace";
btn.style.fontSize = h*mult+"px";
if(x < 0) {
btn.style.right = (-x)*mult-w+"px";
}else {
btn.style.left = x*mult+"px";
}
if(y < 0) {
btn.style.bottom = (-y)*mult-h+"px";
}else {
btn.style.top = y*mult+"px";
}
btn.style.width = w*mult+"px";
btn.style.height = h*mult+"px";
btn.style.background = "rgba(0,0,0,0.25)";
btn.style.color = "white";
btn.innerText = text;
document.body.appendChild(btn);
}
createButton(100,100,75,75,1.25,"W",
function(){ModAPI.mcinstance.$gameSettings.$keyBindForward.$pressed = 0},
function(){ModAPI.mcinstance.$gameSettings.$keyBindForward.$pressed = 1}
);
createButton(25,175,75,75,1.25,"A",
function(){ModAPI.mcinstance.$gameSettings.$keyBindLeft.$pressed = 0},
function(){ModAPI.mcinstance.$gameSettings.$keyBindLeft.$pressed = 1}
);
createButton(100,175,75,75,1.25,"S",
function(){ModAPI.mcinstance.$gameSettings.$keyBindBack.$pressed = 0},
function(){ModAPI.mcinstance.$gameSettings.$keyBindBack.$pressed = 1}
);
createButton(175,175,75,75,1.25,"D",
function(){ModAPI.mcinstance.$gameSettings.$keyBindRight.$pressed = 0},
function(){ModAPI.mcinstance.$gameSettings.$keyBindRight.$pressed = 1}
);
createButton(-200,-175,75,75,1.25,"L",
function(){},
function(){ModAPI.clickMouse()}
);
createButton(-100,-175,75,75,1.25,"R",
function(){},
function(){ModAPI.rightClickMouse()}
);
createButton(-275,-100,75,75,1.25,"E",
function(){ModAPI.mcinstance.$gameSettings.$keyBindInventory.$pressed = 0;},
function(){ModAPI.mcinstance.$gameSettings.$keyBindInventory.$pressed = 1;}
);
+129
View File
@@ -0,0 +1,129 @@
(() => {
invAnimDone = false;
invAnimSpeed = 300;
function hsl2rgb(h, s, l) {
s /= 100;
l /= 100;
const k = n => (n + h / 30) % 12;
const a = s * Math.min(l, 1 - l);
const f = n =>
l - a * Math.max(-1, Math.min(k(n) - 3, Math.min(9 - k(n), 1)));
return [255 * f(0), 255 * f(8), 255 * f(4)];
}
function slideInYGui(yElement,yStart,yEnd,duration){
yElement.$guiTop = yStart;
this.startTime = Date.now();
this.calc = yEnd - ((startTime+duration - Date.now()) / duration) * yEnd;
yElement.$guiTop = this.calc;
this.slidn = setInterval(function(){
if(Date.now()-duration-startTime < 0 && yElement != yEnd){
this.calc = yEnd - ((startTime+duration - Date.now()) / duration) * yEnd;
yElement.$guiTop = this.calc;
}else{
yElement.$guiTop = yEnd;
clearInterval(slidn);
}
}
,16);
}
function invSlideIn(){
if (ModAPI.mcinstance.$currentScreen != null) {
if(ModAPI.mcinstance.$currentScreen.$guiTop != null){
if(!invAnimDone){
slideInYGui(ModAPI.mcinstance.$currentScreen,0,ModAPI.mcinstance.$currentScreen.$guiTop,invAnimSpeed)
invAnimDone = true;
}
} else {
invAnimDone = false;
}
} else {
invAnimDone = false;
}
}
function customMainMenu() {
if (ModAPI.mcinstance.$currentScreen != null) {
if (
ModAPI.currentScreen().startsWith("net.minecraft.client.gui.GuiMainMenu")
) {
var singlePlayer =
ModAPI.mcinstance.$currentScreen.$buttonList.$array1.data[0];
var multiPlayer =
ModAPI.mcinstance.$currentScreen.$buttonList.$array1.data[1];
var mods = ModAPI.mcinstance.$currentScreen.$buttonList.$array1.data[2];
var forkOnGitHub =
ModAPI.mcinstance.$currentScreen.$buttonList.$array1.data[3];
var options =
ModAPI.mcinstance.$currentScreen.$buttonList.$array1.data[4];
var editProfile =
ModAPI.mcinstance.$currentScreen.$buttonList.$array1.data[5];
var launguage =
ModAPI.mcinstance.$currentScreen.$buttonList.$array1.data[6];
var currentScreen = ModAPI.mcinstance.$currentScreen;
var buttonDistance = 42;
var buttonDistanceRel = 22;
var buttonSpacing = 2;
var buttonWidth = 100;
var enc = new TextEncoder();
//options
options.$width13 = buttonWidth;
options.$yPosition = currentScreen.$height7 - buttonDistance;
//mods
mods.$width13 = buttonWidth / 2;
mods.$xPosition0 = options.$xPosition0 - buttonWidth / 2 - buttonSpacing;
mods.$yPosition = currentScreen.$height7 - buttonDistance;
//SinglePlayer
singlePlayer.$width13 = buttonWidth;
singlePlayer.$yPosition = options.$yPosition - buttonDistanceRel;
//MultiPlayer
multiPlayer.$width13 = buttonWidth + launguage.$width13 + buttonSpacing;
multiPlayer.$xPosition0 =
singlePlayer.$xPosition0 + buttonWidth + buttonSpacing;
multiPlayer.$yPosition = options.$yPosition - buttonDistanceRel;
//Edit profile
editProfile.$width13 = buttonWidth;
editProfile.$yPosition = currentScreen.$height7 - buttonDistance;
//Lang
launguage.$xPosition0 =
editProfile.$xPosition0 + editProfile.$width13 + buttonSpacing;
launguage.$yPosition = currentScreen.$height7 - buttonDistance;
//Fork
forkOnGitHub.$width13 = buttonWidth / 2;
forkOnGitHub.$yPosition = mods.$yPosition - buttonDistanceRel;
forkOnGitHub.$xPosition0 = mods.$xPosition0;
forkOnGitHub.$displayString.$characters.data = enc.encode("Fork");
currentScreen.$openGLWarning1.$characters.data = enc.encode("");
//currentScreen.$splashText.$characters.data = enc.encode("Justin is the sped version of Daniel")
}
}
}
function drawHudThings(){
}
function setIntervalThings(){
invSlideIn();
customMainMenu();
}
ModAPI.addEventListener("drawhud",drawHudThings);
var interv = setInterval(setIntervalThings,16);
})();
+26
View File
@@ -0,0 +1,26 @@
## Blur
Makes your fps 5 when you unfocus
### Roadmap
wait for someone to release a mod for mod configs then let u change fps
## SemiAutoLogin
press l to login when in game
you will get a popup on launch
### Roadmap
Stylize popup
## FreshEaglerUI
Make your ui look epic
### Roadmap
Add more custom uis
+47
View File
@@ -0,0 +1,47 @@
(() => {
var popupCenter = ({url, title, w, h}) => {
var dualScreenLeft = window.screenLeft !== undefined ? window.screenLeft : window.screenX;
var dualScreenTop = window.screenTop !== undefined ? window.screenTop : window.screenY;
var width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width;
var height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height;
var systemZoom = width / window.screen.availWidth;
var left = (width - w) / 2 / systemZoom + dualScreenLeft
var top = (height - h) / 2 / systemZoom + dualScreenTop
var newWindow = window.open(url, title,
`
scrollbars=yes,
width=${w / systemZoom},
height=${h / systemZoom},
top=${top},
left=${left}
`
)
return newWindow;
}
ModAPI.require("player");
var w = 200;
var h = 200;
var newWin = popupCenter({url: '', title: '', w: 200, h: 100});
var pass = "";
if(!newWin || newWin.closed || typeof newWin.closed=='undefined')
{
pass = prompt("login (popup failed!)");
} else {
newWin.document.body.innerHTML="<center><form id='form'><input id='pass' type='password' autofocus/><br><br><input type='submit' value='Register'></form></center>";
newWin.document.getElementById("form").onsubmit=function(){
pass = newWin.document.getElementById("pass").value;
newWin.close();
};
}
function loginModFunc(e){
if(e.key == 38){
ModAPI.player.sendChatMessage({message:"/login "+pass})
}
};
ModAPI.addEventListener("key",loginModFunc);
})();