NamedBlocks
This plugin works with "named blocks", literally specific in-world blocks that have been given a symbolic name to make them easy to refer to in event descriptors and scripts. The name can be any string you want, but it has to be unique within each world. It is not case sensitive.
Please note: some commands rely on you looking at the block you want to name, etc.. This does not work very well yet, in the sense that if there is an insubstantial block such as a sign or a ladder in the way which is visually not between you and the block you want to select, but whose block your line of sight nevertheless crosses, that block will be picked instead of the one you meant! The commands always confirm the type and location of the selected block, so always check this to make sure it picked the right one. This will be improved in the future.
Commands
The following commands exist for working with named blocks:
/setname [[<worldname>] <x>,<y>,<z>] <name>
- Set the name of the block you are looking at to <name>.
- Or if you specify <x>, <y>, <z>, set the name of the block at that location to <name>.
- Or if you additionally specify <worldname>, set the name of the block at the specified location in that world to <name>. You have to use this form when executing the command from the console.
/getname [[<worldname>] <x>,<y>,<z>]
- Display the name of the block you are looking at.
- Or if you specify <x>, <y>, <z>, display the name of the block at that location.
- Or if you additionally specify <worldname>, display the name of the block at the specified location in that world. You have to use this form when executing the command from the console.
/clearname [[<worldname>] (<x>,<y>,<z> | <name>)]
- Remove the name from the block you are looking at.
- Or if you specify <x>, <y>, <z>, remove the name from the block at that location.
- Or if you specify <name>, remove the name from the block with the specified name.
- If you specify <worldname> in addition to either <x>, <y>, <z> or <name>, remove the name from the specified block in that world. You have to use this form when executing the command from the console.
/listnames
- List all named blocks
Comments