Advertisement
Guest User

How to add GPS to CraftMenu

a guest
Jun 30th, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. There are two methods to add this to craft menu:
  2.  
  3. 1. Using command as result item
  4. We have default plugin command "gps <userId>", that give GPS to player, so we can use it in field: "Additional commands to execute (you can grant permission, or something else. %STEAMID% support)", so just write: "gps %STEAMID%".
  5. So your settings will looks like (i already setted right custom image of item for you ;3):
  6.  
  7. {
  8. "Display name (in interface)": "GPS Tracker",
  9. "Display description (in interface)": "Your description",
  10. "Result item settings": {
  11. "Custom item name (crafted item will have this name)": null,
  12. "Shortname of item": "",
  13. "Item amount": 0,
  14. "SkinID": 0,
  15. "Craft length (in seconds)": 35,
  16. "Workbench level (0, 1, 2, 3)": 2,
  17. "Additional commands to execute (you can grant permission, or something else. %STEAMID% support)": "gps %STEAMID%",
  18. "Custom image of item (for interface)": "https://i.imgur.com/G0jygti.png"
  19. },
  20. "Craft settings": [
  21. {
  22. "Shortname of item": "glue",
  23. "Amount": 1,
  24. "SkinID of item": 0,
  25. "Custom image of item (for interface)": null
  26. },
  27. {
  28. "Shortname of item": "sticks",
  29. "Amount": 1,
  30. "SkinID of item": 0,
  31. "Custom image of item (for interface)": null
  32. }
  33. ]
  34. }
  35.  
  36. 3. Using default item creation, you can set prize as default item, with custom skin. In this situation, skinID is 1627796062, and it is skin for default item "fuse".
  37. So your settings will looks like (i already setted right custom image of item for you ;3):
  38.  
  39. {
  40. "Display name (in interface)": "GPS Tracker",
  41. "Display description (in interface)": "Your description",
  42. "Result item settings": {
  43. "Custom item name (crafted item will have this name)": null,
  44. "Shortname of item": "fuse",
  45. "Item amount": 1,
  46. "SkinID": 1627796062,
  47. "Craft length (in seconds)": 35,
  48. "Workbench level (0, 1, 2, 3)": 2,
  49. "Additional commands to execute (you can grant permission, or something else. %STEAMID% support)": "",
  50. "Custom image of item (for interface)": "https://i.imgur.com/OLrQo7k.png"
  51. },
  52. "Craft settings": [
  53. {
  54. "Shortname of item": "glue",
  55. "Amount": 1,
  56. "SkinID of item": 0,
  57. "Custom image of item (for interface)": null
  58. },
  59. {
  60. "Shortname of item": "sticks",
  61. "Amount": 1,
  62. "SkinID of item": 0,
  63. "Custom image of item (for interface)": null
  64. }
  65. ]
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement