outdated/Chests
Creating Chests
The real meat of OpenMZ is the chests, of course. Creating chests to your liking is possible entirely from inside the game using basic commands.
Players will need the omz.chest permission to configure chests.
OpenMZ comes configured with chests similar, although not identical, to the ones used in MineZ.
Chests are created by filling your inventory with a bunch of items, all tagged with a probability of being spawned. The durability of items can also be specified as well. To "tag" each item with each of these facts, put the item you want to tag in your hand and use the following commands:
- /omz chest prob [probability]
- Tags the item with a certain probability of occuring. More on this below.
- /omz chest duralow [lowdura]
- The lowest durability the item could spawn at, 0 - 100 (percent).
- /omz chest durahi [hidura]
- The highest durability the item could spawn at, 0 - 100 (percent).
The "probability" tag does not necessarily correspond to a percentage. The best way to think about the way spawns happen are as if it's picking an item out of a bag. The "probability" tag is how many of that item that the plugin throws into this bag. So if you tag a melon with 50 probability, and an iron sword with 10, the "bag" has 60 items inside. 50 of them are melons, the other 10 are iron swords. (The chance of getting a melon is 50/60).
So if all the probabilities of the items in the chest add up to 100, then 1 probability point means 1 percent. I would advise this strategy; tweak the numbers of the spawn rates of all the items to add up to very close to 100, so each point equals 1 percent.
The item tag will be added to the item's lore if you need to check it or reset it.
When every item has been configured to your liking, use the following command:
- /omz chest save [template name] [respawn rate] [minimum loot amount] [max loot] [ztier]
- Saves the chest template to the database.
Template Name: The name of the chest template.
Respawn Rate: The amount of ticks until the chest attempts to respawn. 20 ticks ~ 1 second (depends on your server).
Loot Amounts: The minimum to maximum amount of items spawned in the chest.
Ztier: The amount of zombies that spawn with this chest. Level 0: 0-3. This amount slowly increases to Level 4: 5-15. Anything past that is very large.
I know this command is long and stupid; with the release of bukkit 1.7, the omz chest saving will be handled by a chat GUI.
If you want to test out your chest template, use the command
- /omz chest demo [name]
- Replaces your inventory with whatever a chest of this type would spawn.
Items can be made soulbound- that is, they cannot leave the player's inventory. If the player drops the item, it's destroyed.
- /omz soulbound
- Makes the item in your hand a soulbound item.
Placing Chests
- /omz chest list
- Lists all the available chest templates.
- /omz chest place [templateName]
- Gives you a chest that, when placed, will place a respawning chest of that template type. The "seed" chest will not go away; place as many as you want.
Removing Chests
- /omz chest rem
- Toggles the "chest remover." If you break a chest in creative, this command will remove that chest permanently.
Comments