You are here: Home >> Minecraft Mods >> Vocation Mod 1.10, 1.9.4, 1.9 — Updated: July 1, 2016,

Vocation Mod 1.10, 1.9.4, 1.9

Minecraft Version: 1.10, 1.9.4, 1.9 | Developer: Vazkii | 367 views |

Vocation Mod 1.10, 1.9.4, 1.9 is a mod about text (and voice acted) messages appearing on screen. Check out that video for a short (under 1 minute) demo. The mod is intended for pack developers and similar.

Vocation Mod

How to get started:

  • Install Vocation (mod needs to be present on both the server and client)
  • Load the game once
  • Find the vocation_data folder next to your mods and config folders
  • Create a folder inside there. Name it whatever you want. You’ll put your stuff inside
  • If you want voice acting or sounds, create an “audio” folder inside that new folder you made
  • Create a file in the folder you made (not “audio”), you can name it whatever you want, but it must be a .json file. You can make as many of these as you want.
  • Put your messages on the .json files you made. There’s no limit to how many you can have or where they need to be. The ability to have multiple is just for organizing yourself better.
  • Make sure the files on the server and client are the same. Audio files can be missing on the server, but .jsons need to be the same.

Message format:

You can get an example file, the one used in the demo video, right here. I would advise you to do so after you’re read through the rest of this so you can get a good idea on how to use this.

Messages are in a normal JSON format. The base of the file must be a simple array:
[

 (your messages go here)

]

Inside your array, you can put as many messages as you want. Here’s the format for a message:

{
“id”: “(the ID of this message)“,
“message”: “(the message to show up on screen)“,
“narrator”: “(the name to show up above the message)“,
“time”: “(how long, in ticks, you want this message to stay on screen)“,
“voiceover”: “(the sound to play when this message appears, must be the name of an .ogg file located in your audio folder, optional)“,

“requirements”: (an array of message IDs that the player needs to have seen at least once for this message to appear once a trigger happens, optional),

“triggers”: (the things that will trigger this message to appear, this is an “or” when any of these are fulfilled, the message will appear, optional, trigger format will be shown later),

“actions”: (the things that will happen when this message appears, optional, action format will be shown later)
}

While “message” is not optional, you can leave it empty. If you do, the message will not display, but it’ll still count as seen, and its actions will still be performed. You can use this for having stuff happen on condition or just to create more complex requirement chains.

Triggers are also optional, as there is a command to show a message, you can use that if you don’t want a trigger. Here’s the trigger format.

“triggers”: [

{

“trigger”: “message_seen (this trigger happens whether another message from Vocation has been seen)“,

“key”: “(the ID of the message to check for)

},

{

“trigger”: “stat_above (this trigger happens whenever a player’s stat is above a value)“,

“key”: “(the name of the stat to check)“,

“value”: “(the value that the stat has to be, at the least, for this trigger to happen)

},

{

“trigger”: “item_pickup (this trigger happens when the player picks an item up)“,

“stack”: (the item stack to check for, stack format will be shown later)

},

{

“trigger”: “item_craft (this trigger happens when the player crafts an item)“,

“stack”: (the item stack to check for, stack format will be shown later)

},

{

“trigger”: “mob_kill (this trigger happens when the player kills a mob)“,

“key”: “(the name of the mob that needs to be killed)

}

]

Once a message is triggered, its actions will occur, if there’s any. You can have as many as you want. There aren’t many actions now, but they should take care of most possible things. Here’s the action format.

“actions”: [

{

“action”: “give_item (this action gives an item to the player)“,

“stack”: (the item stack to give the player, stack format will be shown later)

},

{

“action”: “run_command (this action runs a command, with command block level privilege at the position of the player)“,

“param”: “(the command to run here, including the /)

}

]

Lastly, here’s the stack format.

“stack”: {

“id”: “(the id of the item, including the mod id, example: minecraft:log)“,

“metadata”: “(the metadata of this item. Optional. If not present, item metadata will be zero, if the stack is used in a trigger, metadata will not be checked against)

“stackSize”: “(the size of this stack. Optional. If not present, stack size will be 1. Doesn’t matter at all for triggers)“,

“nbt”: (a json object of this item’s NBT, similar to what you’d use if you were running the /give command. Optional. If not present and the stack is used in a trigger, NBT will not be checked against)

}

Commands

The mod also comes with commands that can be used with the run_command action, by command blocks or server admins:

  • /vocation-review – Anybody can use this command, sends the last vocation message that player saw again, doesn’t do actions
  • /vocation-reload – Admin command, reloads all vocation files
  • /vocation-clear <player> – Command Block+ command, clears all vocation data of a player
  • /vocation-set-seen <player> <id> <true/false> – Command Block+ command, sets the message (by message id) flag on a player as seen or not (so it won’t show up later, or will, if you want it to show up multiple times). This won’t trigger the actions, but if a trigger were to happen after you set this to false, the actions will happen again.
  • /vocation-show <player> <id> [do-actions] – Command Block+ command, shows the given message (by message id) to the player sent. “do-actions” at the end is optional, but if present, actions will be done, if the message hasn’t been seen yet, and the message will be marked as seen. If not present, the message will NOT be marked as seen.
  • /vocation-check <player> <id> – Command Block command, sends out a comparator signal if the player has seen the message (by message id). Works in a similar matter to /testfor, if you’re into that.

Vocation Mod Installation

  1. First you need download and install Minecraft Forge.
  2. Then download this Minecraft mod file at link below.
  3. Go to %appdata%. It can also be found by searching for “%appdata%” in your start menu.
  4. Go to .minecraft/mods folder.
  5. If the “mods” folder does’nt exist in your PC, you’ll need create one.
  6. Then drag and drop the downloaded .jar (or .zip) file into mods folder.
  7. Enjoy.

Download Vocation Mod

Share:


0 comment

New comment


Nice Theme

Nice Theme
WordPress Themes