EaglerRinth / eaglerrinth.github.io

the website
https://eaglerrinth.github.io/
3 stars 9 forks source link

[SUBMISSION] - OffhandModV2 #25

Open MrNorshare opened 2 months ago

MrNorshare commented 2 months ago

Description

to get a offfhand on eaglercraft press "f" works on servers with /offhand command

Mod icon

No response

Mod url

data:text/javascript;base64,TW9kQVBJLnJlcXVpcmUoJ3BsYXllcicpOwp3aW5kb3cuYWRkRXZlbnRMaXN0ZW5lcigia2V5ZG93biIsIGV2ZW50ID0+IHsKICAgIGlmIChldmVudC5rZXlDb2RlID09ICc3MCcpIHsKICAgICAgICBpZiAoJy9vZmZoYW5kJy5jaGFyQXQoMCkgPT09ICIvIikgewogICAgICAgICAgICBNb2RBUEkucGxheWVyLnNlbmRDaGF0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICBtZXNzYWdlOiAnL29mZmhhbmQnCiAgICAgICAgICAgIH0pCiAgICAgICAgfQogICAgfQp9KTsKCndpbmRvdy5hZGRFdmVudExpc3RlbmVyKCJrZXlkb3duIiwgZXZlbnQgPT4gewogICAgaWYgKGV2ZW50LmtleUNvZGUgPT0gJzcwJykgewogICAgICAgIE1vZEFQSS5kaXNwbGF5VG9DaGF0KHsKICAgICAgICAgICAgbXNnOiAnSXRlbSBJbiBPZmZoYW5kJwogICAgICAgIH0pOwogICAgfQp9KTs=

Mod source code

ModAPI.require('player'); window.addEventListener("keydown", event => { if (event.keyCode == '70') { if ('/offhand'.charAt(0) === "/") { ModAPI.player.sendChatMessage({ message: '/offhand' }) } } }); window.addEventListener("keydown", event => { if (event.keyCode == '70') { ModAPI.displayToChat({ msg: 'Item In Offhand' }); } });

Mod Author

name: Mr. Norshare
github: https://github.com/MrNorshare
PvPdevlX commented 1 month ago

how to add it to my eaglercraft client?

MrNorshare commented 1 month ago

get it on the discord

MrNorshare commented 1 month ago

also "chicken nuggy"