A OneBlock Minecraft plugin, written by tastybento. Credit for the original idea: IJAminecraft.
AOneBlock puts you on a block in space. There is only one block. What do you do next?
See BentoBox Docs docs.bentobox.world for documentation.
The user command is /ob
. The admin command is /oba
.
Q: What phases are there?
A: There are 12 phases: Plains, Underground, Winter, Ocean, Jungle, Swamp, Dungeon, Desert, The Nether, Plenty, Desolation, Deep Dark, and The End. Each phase features a set of blocks, chests, items, and mobs appropriate for the setting.
Q: How many blocks are there in the phases?
A: There are currently 12 thousand blocks!
Q: What happens after the last phase?
A: The phases repeat.
Q: Why do I keep falling and dying!
A: There are tricks to surviving, but it might be difficult! You need to build space so you don't fall.
Q: I can't catch the blocks when I mine them! How do I do that?
A: You can't catch them all, but it is an infinite block!
Q: Why do certain blocks spawn more frequently than others?
A: They just do! It's random. You can set the relative probability in the config files in the phases folder. Admins can also set certain blocks to appear at certain times no matter what. Look out for the sponge for example!
Q. How do I know which is the magic block?
A. Hit it and it will give out green particles. It's also at the center of your island.
Q. My magic block is no longer there! How do I get another one?
A. You will have to place a block there. Worse case, kill yourself and one will be generated.
Q. My magic block is liquid! How can I mine it?
A. Use a bucket.
Q: Which mobs can spawn?
A: Each phase has a different set of mobs that can spawn. Be careful because they may push you off! If you listen carefully, you may hear hostile mobs coming.
Q. I have no chance to react to hostile mobs spawning!
A. Be prepared. Listen carefully when you mine a block and you will hear hostile mobs coming before they spawn. If you are in a hostile phase, then expect mobs and build defenses to protect yourself. You can mine a block from quite far away.
Q. When mobs spawn, my defenses are destroyed! Why?
A. Mobs make space to spawn. If there's anything in the way, it'll be broken and dropped. You'll have to build accordingly. This is to prevent suffocation exploits.
Q: Do chests spawn?
A: Yes. Chests spawn with random items in them from the current phase. There are common, uncommon, rare and epic chests. Chests with sparkles are good.
Q: Is it possible to reach the Nether or End in this map?
A: The vanilla Nether exists by default but there is no End world, just an End Phase.
Q: What is the end goal?
A: It's whatever you want it to be!
The config files to make the phases are in the phases folder.
There are two files per phase - a file that contains the blocks and mobs, and a file that contains the chests.
The first number of any file is how many blocks need to be mined to reach that phase. This is the phase's key number. Each phase also has a name, an icon, a biome and the following sections:
In the chests file, it just has the phase number and a chests section.
Name of the phase
The material for an icon to show
List of blocks that will generate at these specific block counts. The numbers are relative to the phase and not the overall player's count. If you define 0 here, then firstBlock is not required and firstBlock will be replaced with this block.
Hologram Lines to Display. The key number is the block of the phase to show the hologram. Chat color codes can be used. A hologram plugin is not required for these holograms. The First (Before Phase 1) Hologram is Located in your Locale.
The biomes for this phase.
A list of commands can be run at the start and end of a phase. Commands are run as the Console unless the command is prefixed with [SUDO], then the command is run as the player triggering the commands.
These placeholders in the command string will be replaced with the appropriate value:
Examples:
start-commands:
- 'give [player] WOODEN_AXE 1'
- 'broadcast [player] just started OneBlock!'
end-commands:
- '[SUDO]summon minecraft:wither'
These are run only the first time a phase is completed
end-commands-first-time:
- 'broadcast &c&l[!] &b[player] &fhas completed the &d&n[phase]&f phase for the first time.'
You can stipulate a set of requirements to start the phase:
requirements:
bank-balance: 10000
level: 10
permission: ready.for.battle
The blocks section list Bukkit Materials followed by a relative probability. All the probability values are added up for the whole phase and the chance of the block being placed is the relative probability divided by the total of all the probabilities.
The mob section list mobs that can spawn and their relative probability along with blocks. You can only list entities that are alive and can spawn in this list.
If CHEST is listed in the blocks section, then it will be randomly filled according to this section. You can define as many chests as you like. The first number is a unique chest number. Then follows the chest contents that includes the slot number and the item stack contents. Finally there is the chest's rarity, which can be COMMON, UNCOMMON, RARE or EPIC. The best way to set chests is to do it in game. Fill a chest with the contents you want and then while looking at it enter the command /oba setchest <phase> <rarity>
where
Be very careful when editing the chest items and check that the material is a true Bukkit material and spelled correctly.
OneBlock is an add-on that uses the BentoBox API. Here are some other ones that you may be interested in:
You can add all the usual addons to OneBlock, like Challeges, Likes, Level, Warps, etc. but it is not required.
File bug and feature requests here: https://github.com/BentoBoxWorld/OneBlock/issues