Guest User

Untitled

a guest
Dec 12th, 2019
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. MJS+ modding guide
  2. By using mjs+ you can pratically replace every single thing in the client, going from meme mods to poorfagging """premium""" .png.
  3. Mods are divided in resourcepacks (replacing audio or pictures) and extensions (running javascript code). Download one of each from the repository to look at them.
  4.  
  5. Mods are stored in the MJS+ folder, under either "extension" or "resourcepack" folders. They are nothing more than a folder, containing at least these files:
  6.  
  7. 1) extension/resourcepack .json, depending on which type
  8. 2) preview image
  9. 3) script.js/assets folder
  10.  
  11. 1) extension.json, or resourcepack.json
  12. This file contains the basic mod info.
  13. This is the template
  14. {
  15. "id": "name_of_folder", ##id given to the mod, must be the same name as the folder
  16. "version": "1.0.0", ##version of the mod, format must be "x.x.x"
  17. "name": "anonmod", ##name shown in the MJS+
  18. "author": ["anon"], ##author name shown in MJS+
  19. "description": "mod for /mjg/", ##description shown in MJS+
  20. "preview": "preview.png", ##image used as prewiev in MJS+
  21. "resourcepack": [ ##list of files that will be replaced by the mod //use for resourcepack
  22. "aa/bb/cc/file1.png",
  23. "aa/bb/file2.mp3"
  24. ],
  25. "entry": "script.js" ##script that will be run //use for extension
  26. }
  27.  
  28. If you want to only replace files, use only resourcepack line, and make a "resourcepack" mod.
  29. If you want to only run a script, use only entry line, and make a "extension" mod.
  30. If you want both, write both, but you must make an "extension" mod.
  31.  
  32. 2) preview image
  33. Nothing much to say, it's shown in the starting client
  34.  
  35. 3) script.js and assets folder
  36. If your .json has the line "entry": "script.js", script.js is the code that will be run. Sadly, I don't know JS, and the only thing I can do is modify other people scripts.
  37.  
  38. If your .json has the lines "resourcepack: ...", the assets folder is where you'll place the files that will overwrite MJS standard ones.
  39. The original files are stored in the MJS+ folder, under static/2/v.06.xxx/
  40. 2 should stand for EN server, so if you play in chink it could be 0 or 1.
  41. v.06.xxx is the version in which that file was first used, so while most of the files are under the lowest version number, newer things (like files for events) are under newer folders.
  42. Now search inside the folder for what you wish to replace. Note that most abbreviations are in english, but things longer than 4 character are usually in chink.
  43. Assuming the file you want to replace is "/static/2/v.06.11/en/myres2/treasurehead/treasure_pic0709.png",
  44. you will write in the .json
  45. "resourcepack": [
  46. "en/myres2/treasurehead/treasure_pic0709.png"
  47. ],
  48. and you will place in the assets folder the replacing file, with the same path (ie idofmod/assets/en/myres2/treasurehead/treasure_pic0709.png).
  49.  
  50.  
  51. If you haven't fucked up, the mod should show in the MJS client, and work when enabled.
  52.  
  53. If it doesn't, it probably is something stupid such as
  54. >id is different from folder name
  55. >version isn't x.x.x
  56. >comma on the last element of the files to replace in the json
  57. >confused extensions from resourcepacks
  58. >put folders in wrong places
  59. >...
  60.  
  61. If it does start but doesn't work in game:
  62. >script is wrong
  63. >chinks use different files than the one you're replacing (the v.06.xxx storage convention is hell to go through)
  64. >chinks use 10 different versions of the same files, and you didn't replace them all
  65. >...
  66.  
  67.  
  68. Other things:
  69. >As of now, there are mods that replace tiles, characters, buttons, audio, tablecloths and some other things, so take a look to avoid wasting your time, and take what you need
  70. >you can export/import from MJS client, it just expands/compress the mod folder into a renamed .zip
  71. >there is tablecloth tool, it will make by itself a resourcepack mod with your desired tablecloth.png replacing the standard blue one
Add Comment
Please, Sign In to add comment