HomeJavaModsLeadWires
LeadWires
[​IMG]

This plugin allows you to place "wires" using tools, commands or API for the developers. The wires are actually leads on invisible entities (silverfish, since they are the smallest mobs).

Regular players can also place leads on blocks that are allowed in the config. You may configure the plugin to require a permission from players to place leads or disable this feature completely. Such leads will be broken and dropped as items if blocks they reside in are destroyed.

The plugin causes almost no lag because all entities are sent using packets, meaning they don't tick, receive damage, move, cause events, etc. This also prevents leads from breaking when they have length more than 10 blocks, since the server doesn't even know they exist.

ProtocolLib is required for this plugin.

Spoiler: More screenshots
[​IMG]
[​IMG]
[​IMG]
[​IMG]

Limitations
Commands
Tools

Wire Placer

Click RMB on a block to set the first point.
Click RMB again on another block to place a wire between the first point and the second block. The wire will start and end in the exact center of the blocks.
Click RMB again to continue placing the wire from the last point.
Click LMB to reset the first point.

Thick Wire Placer

Works in the same way as Wire Placer, except it places thicker wires (they are actually three wires that are slightly offset).

Wire Remover

Click RMB on a block to remove all wires that start or end in the block.



Permissions
Config

config.yml contains configuration for different parts (modules) of the plugin. At this moment, there is only "lead placement" module.

Settings for lead placement:
Code (YAML):
# If false, lead placement will be disabled.
enabled
: true
# Max length of the lead. If exceeded, player will receive a message.
maxLength
: 10
# If true, player can continue placing leads after placing one,
# new lead will start from second point of the last lead.
continueFromLastPoint
: true
# Permission to place leads. If empty, permission will not be checked.
# If permission is set and player has no such permission, player will receive a message.
permission
: ''
# All blocks allowing a lead to be placed on them.
# This list works both for the legacy (1.12-) and flattened (1.13+) versions.
allowedBlocks
:
 - 'FENCE'
  ...
# Messages sent to players.
messages
:
  firstPointSet
: '&aFirst point of the lead set'
  ...
There is a messages.yml file containing all messages in English.

API

The plugin allows you to create and remove wires programmatically, so you or your developers can implement some awesome ideas like electricity, power poles, etc.

To use this plugin as an API, read the GitHub page for instructions.

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

LeadWires is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 3,047 times (via Spigot). Download it and open it directly in the game.

Explore more