A plug-in allowing any player to get planks, triangular planks, beams, logs and 4 type of windows textured with any of 198 built-in RW construction textures (in other words, the textures of the blocks, which in full creative mode can be obtained wit the console command "item woodplank/beam/log <qty> <textureId>"), even outside of full creative mode.
It is not intended as a way of cheating, but as a way to extend building possibilities. Then, items have a cost in resources: by default, the same cost a block with the same texture would have: stones, sandstones, dirt, iron ingots, copper ingots (but wood lumbers are used instead of logs).
Version 0.5.4
*) Apparently NetBeans does not automatically rebuild all the necessary source files and some of the last fixes did not went through into the .jar. This version is a full rebuild with all the known bugs really fixed! All servers using previous versions are strongly invited to upgrade!
Version 0.5.3
*) Fixed a bug with iron and copper ingot ID's: now iron and copper materials are correctly consumed on item making.
Version 0.5.2
*) Fixed a bug with new window ID's: now all windows can be properly created.
Version 0.5.1
*) Fixed a bug when switching to the last screen of textures while the selected image is greater than the last screen max image.
Version 0.5.0
*) Updated to latest plug-in API (0.9.3): now it should work correctly with the latest RW server and client.
Version 0.4.1
*) Fixed a bug with the type selection radio buttons.
*) When in creative mode, resources are free only if the permission file for the player has "freecrafting" set to true.
- Features
*) Any of the 198 built-in construction textures can be used (there are 4 screens as the one shown above, through the Up and Down arrows on the right).
*) Selection of Plank, Beam, Log, Triangle and the 4 type of window frames.
*) 1 to 64 quantity.
*) "Min" and "Max" button to jump to minimum (1) and maximum (64) quantity.
*) ID of textures.
*) The cost in resources of the current selection is shown.
*) The player must have enough resources in the inventory (any slot) to "buy" all the selected items; if there are not enough resources, the player is notified in the chat and nothing happens.
*) On buy, the resources are withdrawn from the inventory and the new items left in it.
*) By default, one item costs one resource, but greedy server owners can set a higher cost in the plug-in settings.properties.
*) A setting allows to have item for free (no resources needed) for admins and / or while in creative mode, as in the vanilla game.
*) All GUI texts can be localised to any other language. English and Italian are provided; Files for German and French (France and Canada) are provided as examples but untranslated. Details in the locale/readme.txt file.
____________________
Important - Important - Important - Important:
in order to work the plug-in requires the GUI back-end plug-in 0.5.0 available here. Install it at the same time of (or before) installing this plug-in or the server will crash at start-up!
____________________
- Commands
There is only one command: /pnb (for Planks 'N Beams, but configurable in the plug-in settings.properties) which shows the above screen.
Installation
*) Extract the files in the ZIP placing the whole pnb folder into the plugins folder of RW (if the plugins folder does not exist, just create one). The resulting hierarchy shall be:
Open points and known issues
*) As built-in images cannot be accessed, the plug-in has its own, reduced, version of the textures for the GUI and must send them to the client for display; this may affect bandwidth. Only actual practice may tell if and how much. (This only refers to the images used in the GUI, not to the textures actually used to texturise the items, which RW manages internally).
*) The GUI images come from RW own textures, scaled to 50% and cropped to 64x64 pixels (to fit a reasonable amount of textures in a screen). I hope this does not result in a copyright infringement. I tried to put the images inside the .jar, as a measure of (rather limited) protection, but I could not find a way (see here for details).
*) Other bugs may well exist! I did my best but foreseeing all the possible use cases and contexts is hard. Post here bug reports, with specific steps to replicate the issues and I'll try to correct them.
I really need steps or instructions to replicate the problem on my PC or I cannot fix it!
Source Code
The source code for this plug-in is available on github .
Enjoy!