LWComponents by loosewheel Licence ======= Code licence: LGPL 2.1 Media licence CC BY-SA 3.0 Version ======= 0.1.3 Minetest Version ================ This mod was developed on version 5.4.0 Dependencies ============ default Optional Dependencies ===================== lwdrops mesecons digilines unifieddyes intllib hopper Installation ============ Copy the 'lwcomponents' folder to your mods folder. Bug Report ========== https://forum.minetest.net/viewtopic.php?f=9&t=27425 Description =========== Various components for mesecons and digilines. Dropper ------- * This block is only available if digilines and/or mesecons are loaded. Contains an inventory and drops an item on command. Also acts as a digilines conductor. If the hopper mod is loaded, will take items from the top and sides, and release them from the bottom. UI Channel - digilines channel of dropper. Top 16 slot inventory - storage of items to drop. Bottom 32 slot inventory - player's inventory. Mesecons Drops the next item when power is turned on. Digilines messages "drop" Drops the next item. No drop if dropper is empty. "drop " Drops 1 item from the given slot (1 to 16). No drop if slot is empty. eg. "drop 7" "drop " Drops 1 item of the given name. No drop if dropper does not contain the item. eg. "drop default:stone" When an item is dropped a digilines message is sent with the dropper's channel. The message is a table with the following keys: { action = "drop", name = "", -- name of dropped item slot = -- slot number the item was taken from (1 to 16). } Dispenser --------- * This block is only available if digilines and/or mesecons are loaded. Contains an inventory and dispenses (with velocity) an item on command. Also acts as a digilines conductor. If the hopper mod is loaded, will take items from the top and sides, and release them from the bottom. Dispensers support mobs mod if loaded. Will spawn the entity from an 'egg' if possible, or the 'egg' is dispensed. If a chicken egg is dispensed a 10% chance a chicken is dispensed instead. UI Channel - digilines channel of dispenser. Top 16 slot inventory - storage of items to dispense. Bottom 32 slot inventory - player's inventory. Mesecons Dispenses the next item when power is turned on. Digilines messages "dispense" Dispenses the next item. No dispense if dispenser is empty. "dispense " Dispenses 1 item from the given slot (1 to 16). No dispense if slot is empty. eg. "dispense 7" "dispense " Dispenses 1 item of the given name. No dispense if dispenser does not contain the item. eg. "dispense default:stone" When an item is dropped a digilines message is sent with the dropper's channel. The message is a table with the following keys: { action = "dispense", name = "", -- name of dropped item slot = -- slot number the item was taken from (1 to 16). } Collector --------- * This block is only available if digilines is loaded. Picks up dropped items in adjacent block, with optional filtering. Also acts as a digilines conductor. If the hopper mod is loaded, will take items from the top and sides, and release them from the bottom. UI Channel - digilines channel of collector. Left 16 slot inventory - storage of picked up items. Right 8 slot inventory - Filter list. Place what items should be picked up in this list. Leave empty to pick up all. Bottom 32 slot inventory - player's inventory. Digilines messages "start" Start the collector. "stop" Stop the collector. When items are picked up a digilines message is sent with the collector's channel. The message is a table with the following keys: { action = "collect", name = "", -- name of picked up items. count = -- number of the item picked up. } Detector -------- * This block is only available if digilines and/or mesecons are loaded. Detects items or entities within a given radius. Also acts as a digilines conductor. UI Channel - digilines channel of detector. Radius - block distance from detector to detect. Entities - if checked detects entities. Players - if checked detects players. Drops - if checked detects drops. Nodes - if checked detects nodes. mode: All - detects to radius in all directions, including diagonal. Forward - detects to radius directly in front of the detector (one block high). Up - detects to radius directly above the detector (one block wide). Down - detects to radius directly below the detector (one block wide). Mesecons Mesecons power is turned on when something is detected, and turned off when nothing is detected. Digilines messages "start" Start the detector. "stop" Stop the detector. "radius " Set radius of the detector. should be a number from 1 to 5, and is trimmed to this range. "entities " Set detection of entities on or off. "players " Set detection of players on or off. "drops " Set detection of drops on or off. "nodes " Set detection of nodes on or off. "mode all" "mode forward" "mode up" "mode down" Set the detector's mode. When items or entities are detected a digilines message is sent with the detector's channel. A message is sent for each found item/entity. The message is a table with the following keys: { action = "detect", type = "", -- will be "entity", "player", "drop" or "node" name = "", label = "