Cellblock 1.6
Changes
- COMMENTS! Some more comments have been added to Cellblock's source. They're mainly to help out anyone looking into the API
- HELP MENU COMMAND! The command shown by the help menu can be changed on line 77. Default is "cb"
- ADMIN ERROR! Help menu says sorry when an admin command is info'd and the player isn't admin
- API CHANGES! When a Cell is created, their name is saved in a list accessible by using the Cell ID as the key. Commands can also be registered for the help menu and then accessed through the Cellblock command instead of overriding.
- CONVERTER! A converter for 1.6 has been put in. It's only a small one which adds all current Cells to the Cell ID list.
New features
- EVENTS API! Cellblock has an events API.
Code (Text):
on script load:
set {cb::temp::example::input::command} to "example-event-console" # Cellblock sends the arguments in a set order
set {cb::temp::example::input::event} to "break" # The event you're listening for
execute console command "cb-console injectors add command example::input::command example::input::event after false %script%" # Registering with Cellblock
command /example-event-console [<text>] [<text>] [<text>] [<text>]:
executable by: console
trigger:
if arg 1 is "break": # event
if arg 2 is set: # player
if arg 3 is set: # cell
if arg 4 is set: # event-location (needs parsing)
set {_p} to arg 2 parsed as player
set {_u} to uuid of {_p}
set {_c} to arg 3
set {_l::*} to arg 4 split at ","
set {_loc} to the location at ("%{_l::1}%" parsed as number), ("%{_l::2}%" parsed as number), ("%{_l::3}%" parsed as number) of the world world of {_p}
- NEW API! CellblockAddons can now register a command and have it display in the /cb help menu, plus have a description for it when a player does /cb help <command>
Code (Text):
set {cb::temp::example::input::command} to "example-console free [[player]]"
set {cb::temp::example::input::shortcommand} to "free"
set {cb::temp::example::help::show} to true
set {cb::temp::example::help::command} to "free"
set {cb::temp::example::help::admin} to true
set {cb::temp::example::description::array} to true
set {cb::temp::example::description::hasdesc} to true
set {cb::temp::example::description::desc::1} to "%{cb::prefix}% Shows all the cells which are free"
set {cb::temp::example::description::desc::2} to "%{cb::prefix}% Quickly and easily find a free and open cell using /%{cb::settings::helpcommand}% free!"
set {cb::temp::example::description::desc::3} to "%{cb::prefix}% Powered by an Example Addon!"
execute console command "cb-console injectors new command example %script%"
Cell Directory
- COMPLETELY FREE! Get Cell Directory at no extra cost! Cell Directory is in the Cellblock.zip which is downloadable from now on.
- FANCY FEATURES! Easily allow users to view a list of cells through signs that can either be rotated or be set to 1 Cell! Example signs:
![[IMG]](/proxy/image?url=http%3A%2F%2Fi.nfell2009.uk%2Fspigot%2Fsign_example.png)
- PLACEHOLDERS! The signs for Cell Directory use specific placeholders. Here are them all, and their explanation:
- cell directory, cell dir, [Cell List], cell list, &9&l[Cell List], &9Cell List or &9[Cell List] - These are top line tags. Cell Directory knows that you're creating a sign for it by putting one of the above. They're automatically converted to &9[Cell List] after a successful sign creation
- c:<just a cell name> - You can just put a Cell name prefixed with c:. Cell Directory then shows the information specifically for that Cell. That Cell is then the Active Cell.
- integer-integer - This loops between the listed 2 integers. Currently only supports like: 1-6. Backwards looping isn't supported and will just cause it to go back by 1 and be stuck. Cells that don't exist come up as <none>. The Active Cell is the Cell currently shown on the sign.
- price - This shows the price for the currently Active Cell. If no price is set, then <none> appears (will be changed in next update to <currency>0)
- time - Shows the time for the currently Active Cell. If the time is not set, then the line is set to "Invalid Time".
- owner - Sets the line to show the Active Cell's owner. If the Cell is not owned/for sale, then the owner line is displayed as "Unowned".
- RENT FEATURE! Cell Directory signs register into Cellblock's signs. This means that they are watched by Cellblock too. When a sign is right clicked, the user will be given the exact same information as if they right click a normal cell info sign from Cellblock. The users can rent, extend their time or get into about the Active Cell.
Planned Features:
- COMMANDS! I'm planning on adding commands to Cell Directory. Features like updating signs and adding tags. So you could randomise a sign (probably using CSV feature probably) and do things like only show Cells which aren't owned, their price is greater than or less than a specific amount or even show Cells which have a specific amount of time left.
- CSV! I'm also looking into being able to list Cells dynamically through comma-separated values. This means that you can do things like 1,3,6 and only show the specific Cells.
- GLOBAL LIST! Using the commands and tags feature above, I'm going to try and make it so you could list every Cell and provide a specific tag for which ones to show.
I hope you enjoy the hard work I've put into this. Sorry about the lack of updates (last one nearly a year ago

...), but I'm trying my hardest to manage my real life job, personal life, Umbaska (3), SkriptRepo, the continuation of Skript, skUnity forums, skUnity discord and so much more! I do appreciate everyone that has purchased Cellblock and I'm proud of what has been created.
Thank you,
nfell2009