Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MMO_Menu:
- type: inventory
- debug: false
- inventory: chest
- title: RPG Commands
- size: 9
- slots:
- - [MMO_Menu_quests] [MMO_Menu_Player] [MMO_Menu_Skills] [MMO_Menu_Inventory] [MMO_Menu_Waypoints] [MMO_Menu_Attributes] [MMO_Menu_Guild] [MMO_Menu_Filler] [MMO_Menu_Close]
- MMO_MENU_HANDLER:
- type: world
- debug: false
- events:
- on player clicks in MMO_Menu:
- - determine passively cancelled
- - if <context.item.has_flag[action]>:
- - playsound <player> sound:UI_BUTTON_CLICK volume:0.6 pitch:1.4
- - choose <context.item.flag[action]>:
- - case quests:
- - inventory close
- - wait 2t
- - execute as_player quest
- - case attributes:
- - inventory close
- - wait 2t
- - execute as_player attributes
- - case player:
- - inventory close
- - wait 2t
- - execute as_player as_player
- - case skills:
- - inventory close
- - wait 2t
- - execute as_player skills
- - case waypoints:
- - inventory close
- - wait 2t
- - execute as_op "mmocore waypoints open <player.name>"
- - case rpginv:
- - inventory close
- - wait 2t
- - execute as_player rpginv
- - case guild:
- - inventory close
- - wait 2t
- - execute as_player guild
- - case close:
- - inventory close
- on player clicks block with:MMO_Menu_Open:
- - determine passively cancelled
- - inventory open d:MMO_Menu
- MMO_Menu_quests:
- type: item
- debug: false
- material: book
- display name: <&d>Quests
- flags:
- action: quests
- MMO_Menu_Attributes:
- type: item
- debug: false
- material: apple
- display name: <&a>Attributes
- flags:
- action: attributes
- MMO_Menu_Skills:
- type: item
- debug: false
- material: blaze_powder
- display name: <&c>Skills
- flags:
- action: skills
- MMO_Menu_Player:
- type: item
- debug: false
- material: PLAYER_HEAD
- mechanisms:
- skull_skin: <Player.uuid>
- display name: <&9>Player Stats
- flags:
- action: player
- MMO_Menu_Filler:
- type: item
- debug: false
- material: gray_stained_glass_pane
- display name: <&8>
- MMO_Menu_Inventory:
- type: item
- debug: false
- material: PLAYER_HEAD
- mechanisms:
- skull_skin: 7f4f0b9a-85ff-48fc-bab9-7c78d6f772a4|eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjEyYzBhMzljZjQ2YTcyYzE4ZmJhMzA3YjgxNTQ2MmQxOTk3NGZlZWU3YTA3ODY0MzU2OWRlY2JmNWI3In19fQ==
- display name: <&b>Inventory
- flags:
- action: rpginv
- MMO_Menu_Waypoints:
- type: item
- material: compass
- debug: false
- display name: <&6>Waypoints
- flags:
- action: waypoints
- MMO_Menu_Guild:
- type: item
- debug: false
- material: white_banner
- display name: <&f>Guild
- flags:
- action: guild
- MMO_Menu_Close:
- type: item
- material: barrier
- debug: false
- display name: <&4>Close Menu
- flags:
- action: close
- MMO_Menu_Open:
- type: item
- material: book
- debug: false
- display name: <&6>[<&b>RPG Menu<&6>]
- mechanisms:
- hides: enchants
- lore:
- - <&9>Click me to open the RPG Command menu!
- enchantments:
- - silk_touch:1
- MMO_Menu_on_join:
- type: World
- debug: false
- events:
- on player joins:
- - if <player.inventory.slot[9].material.name> == air:
- - give MMO_Menu_Open slot:9
- MMO_Menu_on_command:
- debug: false
- type: command
- usage: /mmo_menu
- description: opens the mmocore menu
- permission: mmocore.menu.command
- name: mmo_menu
- aliases:
- - menu
- script:
- - inventory open d:MMO_Menu
- MMO_book_command:
- debug: false
- type: command
- usage: /mmo_book
- description: gives the MMO_Menu_Open book item if they dont already have it, narrates the inventory slot if they do
- # permission: mmocore.menu.book
- name: mmo_book
- aliases:
- - menu_book
- script:
- - if !<player.inventory.contains.scriptname[MMO_Menu_Open]>:
- - give MMO_Menu_Open
- - else:
- - narrate "<&c>You already have a <item[MMO_Menu_Open].display> <&c>in slot: <player.inventory.find.scriptname[MMO_Menu_Open]>"
- #Changelog:
- #v1.1 added a death catch to avoid duplication of the menu
- #v1.2 resolved some on death parsing bugs.
- #v1.3 updated for denizen flag update
- #v1.4 updated to have a few commands, more safety in events for later paper/denizen builds, added user feedback noises when they click buttons in the gui
Add Comment
Please, Sign In to add comment