From c26d7a86ca8d99aaeeafa185bcba128c831ec364 Mon Sep 17 00:00:00 2001 From: loosewheel <76670709+loosewheel@users.noreply.github.com> Date: Sun, 27 Feb 2022 09:56:09 +1000 Subject: [PATCH] Add files via upload --- docs/force_field_generator.txt | 67 ++++++++++++++++++++++++++++++++++ docs/storage.txt | 3 +- 2 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 docs/force_field_generator.txt diff --git a/docs/force_field_generator.txt b/docs/force_field_generator.txt new file mode 100644 index 0000000..8d39751 --- /dev/null +++ b/docs/force_field_generator.txt @@ -0,0 +1,67 @@ +Force Field Generator +--------------------- + +Force field generators repel players and mobs within a given radius from +the generator. The radius can be 5 to 25 and is in all directions. An +'electric dome' appears marking the field. The generator consumes fuel +relative to the radius. A radius of 25 uses 1 coal in 10 seconds, 5 uses +1 coal in 50 seconds. Each time an entity is repelled it cost 1 fuel value +(1/40 of a coal). Any players or mobs permitted inside the field can be +added to the Permit list. Each entry must be on a new line with no extra +spaces. Empty lines (not even a space) are ignored. The mob's registered +name or tag can be used. The owner of a locked generator will not be +repelled. When something is repelled it takes a small amount of damage. + +Only the owner can dig or access the form of the locked version. + +UI +Channel - digilines channel of generator. +Radius - the node radius to repel, in every direction. 5 to 25. +Permit - list of players or mobs to allow within field. Mobs can be registered + entity name or tag. +Start/Stop button - starts and stops the field. +Fuel - single slot inventory. +Player inventor - 32 slot inventory at bottom. + + +Mesecons + Turns the generator on and off. + + +Digilines messages + +"start" + Start the generator. + +"stop" + Stop the generator. + +"radius n" + Set the radius to n, where n is a number between 5 to 25. + +"add " + Add a name to the permit list. + +"remove " + Remove a name from the permit list. + +"status" + Query the status of the generator. The generator will send a digilines + message with its own channel as the following table: + { + action = "status", + state = "on" | "off", + radius = n, -- radius as number + permit = + { + + }, + fuel = + { + name = name, -- eg. "default:coal_lump", will be "" if empty + count = n, -- count of fuel + } + } + + +Hoppers and pipeworks tubes can be used to push or pull the fuel. diff --git a/docs/storage.txt b/docs/storage.txt index 6f6d560..3b810e0 100644 --- a/docs/storage.txt +++ b/docs/storage.txt @@ -70,7 +70,8 @@ or } Moves the item/s to the output. If count is omitted defaults to 1. If the requested amount is greater than in storage, only the stored amount - is moved. + is moved. If the requested amount is greater than a full stack of the + item a full stack is moved. "inventory"