📌 Information EL
Description
ExecutableLevers adds small levers that run commands. You place one on any face of a block, at the exact point you aim at, and a right-click flips it. Turning it on runs one list of commands, turning it off runs another.
A lever is a switch for commands: open a door, start an event, give an effect, send a message. It is not a redstone part and gives no redstone signal.
It requires the free SCore library plugin, and Minecraft 1.19.4 or above. Players need no resource pack and no mod.
Support
Need help, report a bug or submit a suggestion? Something is not in the wiki or poorly explained ?
- Join the Discord
Get it
- ExecutableLevers on SPlugins (official website)
- It is included in the subscription. There is no free version.
How it works
/el give 3gives you three levers.- Right-click a block with the lever in your hand. It appears where you aim, on the top, the bottom or a side of the block, and you keep the item. Several levers fit on one block.
- Sneak while looking at the lever, within 5 blocks: its editor opens.
- Right-click the lever to flip it.
The editor of a lever
Each placed lever has its own settings:
- Scale: the size of the lever. The default,
0.5, is half a vanilla lever. - Glow when powered: the lever glows while it is on.
- Activators: what the lever runs. A lever takes as many activators as you want.
- The red button removes the lever. The item is not given back.
Activators
An activator is a trigger, some optional conditions, and the commands to run.
| Setting | Config key | What it is |
|---|---|---|
| Trigger | option | LEVER_ENABLE_POWER (the lever turns on) or LEVER_DISABLE_POWER (it turns off) |
| Player commands | playerCommands | Run for the player who flipped the lever: the player commands of SCore |
| Block commands | blockCommands | Run on the block where the lever stands |
| Player conditions | playerConditions | See the custom conditions |
| Block conditions | blockConditions | |
| World conditions | worldConditions | The weather and the time |
| Placeholder conditions | placeholdersConditions | Any PlaceholderAPI placeholder |
| Player cooldown | cooldownFeatures | A cooldown for each player, in seconds or in ticks |
| Global cooldown | globalCooldownFeatures | A cooldown for everyone |
| Silence output | silenceOutput |
A line of a command list that is not one of the SCore commands is run by the console, as a normal server command.
Commands and permissions
Give levers
- Command: /el give [amount]
- The levers go to the player who types the command.
- Permission:
el.cmd.give
Permissions
el.cmds: every commandel.*: every permission of ExecutableLevers
In the versions up to 2.26.11.28, the editor of a lever opens for any player who sneaks while looking at it. From the next release it needs the permission el.editor (given to operators by default).
Good to know
- A lever gives no redstone signal. It only runs commands.
- Every player can flip a lever. Use a condition (a permission, a region) to choose who runs its commands.
- A lever has no cost and no use limit: conditions can check a level, experience or items, but they take nothing.
- A lever is not tied to its block: if the block is broken, the lever stays.
- The messages of the plugin are in English. The editor is translated in 13 languages.