Architech

ToolWorx Architech

The Architect plugin allows the user to define a machine 'blueprint'

A blueprint is the pattern of blocks a player must build in order for the ToolWorx core plugin to detect a machine. The blueprint also defines the behavior of the blocks in the machine. Normally placed blocks have no block type assigned to them and only serve as placeholders. They are required to be placed to complete the machine build but serve no purpose beyond that. Any block in the blueprint can also be assigned a block type. There will be a set of different block types that give functionality to the machine. These are the first set of blocks that I want to have functional for the alpha release. At lease initially only the system OP can design blueprints. Any player can use them once they are saved by the plugin.

Block Removing types:

TWx_Drill - This block type will mine a 3x3x1 hole relative to its active face and place the drops in an available chest on the machine

Machine Moving types:

TWx_Driver - This block type will move the entire machine forward one block at a time provided there is ground under the machine and nothing in front of the machine to stop it. The machine can be turned with a stick click or sign as in the original machine craft Drill and builder.

TWx_Pilot - This block will move the entire machine similar to the Driver block but can build up or down as well. ground under the machine is NOT needed. TWx_Train - This block will move the entire machine along a path (of a particular block material) set in front of it. This will allow the player to set a parameter and have the machine follow it.

Block Adding types:

TWx_Paver - This block will place a block (from a chest on the machine) relative to its active face anytime that space is empty (AIR or WATER)

TWx_Dropper - This block will place a block every X blocks. for example it would place a torch on a wall every 5 blocks or a sapling every 10.

The whole idea is to be able to build whatever machine you would like. You could build a machine just like the MachinaDrill with a TWx_Drill and TWx_Driver block. You could then add 4 more TWx_Drill blocks to the blueprint and have a bore a 15X3 mineshaft. Add some TWx_Dropper blocks to the design and you could have that same mineshaft lined with torches. Of course each block would consume fuel and not every player could redesign a blueprint.

Current State of things

Currently in the program I can design a blueprint and have the core plugin detect them. the only block type I have functional is one that moves the machine forward one block every 20 server ticks. It doesn't sound like much but the framework to get the blueprint designed , detected, tracked and execute is all in place and that is the biggest part. I need to add some more functionally like collision detection and make the interface a little more friendly. Then I can start building the specific block types that actually effect the machine and the blocks around it.


Comments

Posts Quoted:
Reply
Clear All Quotes