PistonChest
You can now give pistons certain abilities which extend their basic boring nature.
Supports:
- LWC (command 'pcpassword <password>' allows the user to assign a password to a piston, to give to LWC password protected chests)
- Lockette
- Secure Chests
About:
Whenever you place a piston it will be registered in your name. This prevents players from destroying them or claiming them for themselves. PistonChest supports the above plugins which can prevent a piston from accessing a chest if they do not have permission. In this plugin there are certain abilities which modify how the piston behaves, and can be combined to create the ultimate machine. The basic ability is being able to push and retrieve blocks and items from a chest. In order to add an ability the player must use the specified tool (default: stick) then right click on their piston to bring up a GUI from where they can either add items to use abilities or simply turn them on and off. See below for a list of abilities...
To Install,
- Copy and paste the 'PistonChest.jar' file into the plugin folder...
No more need for Commands!
Use a stick by default to modify your piston functionality! (Version 1.8)
NEW VERSION UPDATES AND FIXES
Videos
Commands and Permissions
- /pcreload - pistonchest.reload - Reloads the config file
- /pcregister - pistonchest.register - Registers an unregistered Piston. (Pistons are registered on place by default).
- /pcunregister - pistonchest.unregister - Unregisters a piston that is registered by you. (Allows other people to claim it)
- /pcpassword - pistonchest.password - Assigns a password to unlock a password protected chest (For LWC).
- /pcdetails - pistonchest.details - Gets the details of the clicked piston.
- /pcability - pistonchest.ability - Gives pistons certain abilities.
Config
Change Log:
Abilities:
Type '/pcability <add/remove> <ability>' then click on the piston, to manage piston abilities. Abilities can be combined to make the ultimate piston machines!
chest_access
Description:
Gives the piston the ability to push and pull blocks/items in and out of chests.
How To:
super_push
Description:
Gives pistons the ability to shoot blocks/items. Note: To increase the power of the piston, surround it with obsidian. Works 1 block all the way around.
How To:
chest_dispenser
Description:
Gives pistons the ability to push blocks from a chest.
How To:
Ultimate Setup
Please note you will have to adjust the obsidian according to how far the chest is away, and what item is being fired. (Players and monsters encounter wind resistance).
@kevupton
Can you make a ability to Pull the end product from a Furnace? That would be very nice.
@Wurstmann88
Ok, can you please make a ticket, and state the current error message in it. And what you did to cause it etc.. and version. Then i can look into it... And see what is causing it. It is a weird issue.... haha. :/
Thanks, :)
@kevupton
I have ripped out all other plugins... still the same problem.
Here is a link to my database:
http://www.file-upload.net/download-7014247/pistonchest.db.html
@Wurstmann88
Well maybe<sub> but i cant really see how :/ What other piston plugins do you have?</sub>
That definitely is a database error though. So it seems your database isnt being created properly. Are you able to send me a copy of the database file you have? And can u create a ticket please...
@kevupton
Yes it creates a new one. First time i deleted it, it was 1 kb, now it has 4 kb. But still the same error. I don't understand why it gets a database error now, in version 1.4.5 everything worked fine :/
the creations seems always to be OK: 07:57:45 [INFO] [PistonChest] Enabling PistonChest v1.7.1.4 07:57:45 [INFO] [PistonChest] Metrics Enabled 07:57:45 [INFO] [PistonChest] Database Created. 07:57:46 [INFO] [PistonChest] Connected to DB
is it maybe possible that the plugin is incompatible to other plugins?
@Wurstmann88
and is it created when you start the server? if not does the server say anything?
@kevupton
Hello kevupton,
i deleted the folder with the pistonchest.db inside. But it changed nothing, just my config file is updated now. :(
@Wurstmann88
It seems that the pistonchest database file has become broken somehow. If you you go into your plugins folder, then pistonchest folder, delete pistonchest.db and start your server again...
Hello,
I have a problem with the plugin since the new 1.4.6 Version of bukkit. Nothing is working anymore, Pistons can't push or pull blocks/items in/from pistons. In 1.4.5 the plugin worked fine. When I use the old plugin version 1.6.5 for 1.4.5 it does nothing and gives no error out. all 1.7.x.x give errors when it try to use a (single!) piston. My server is on windows XP 32 bit, it is just a home LAN server. The Errors: 19:27:31 [INFO] java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database (no such table: pistons) 19:27:31 [INFO] [PistonChest] Error using the SQL database in PistonDatabase get Piston.
19:29:15 [SEVERE] Could not pass event PlayerInteractEvent to PistonChest v1.7.1.4 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.v1_4_6.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:178) at net.minecraft.server.v1_4_6.PlayerInteractManager.dig(PlayerInteractManager.java:114) at net.minecraft.server.v1_4_6.PlayerConnection.a(PlayerConnection.java:564) at net.minecraft.server.v1_4_6.Packet14BlockDig.handle(SourceFile:46) at net.minecraft.server.v1_4_6.NetworkManager.b(NetworkManager.java:290)
at net.minecraft.server.v1_4_6.PlayerConnection.d(PlayerConnection.java:112) at net.minecraft.server.v1_4_6.ServerConnection.b(SourceFile:39) at net.minecraft.server.v1_4_6.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:598) at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:224) at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:494) at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:427) at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.NullPointerException at me.kevupton.pistonchest.PistonDatabase.getEvent(PistonDatabase.java:51) at me.kevupton.pistonchest.PistonChest.onPistonClick(PistonChest.java:323) at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 16 more
What can i do to fix that???
@TinCow
Ok good to hear! :) haha
@kevupton
I will if necessary. However, I recently did a significant upgrade to the server. It used to be running on XP and was limited to 1.5gb of ram as a result, with the inherent crapitude of XP as a server on top of that. It's now running on Linux and the MC server has access to 3gb of ram, and that's resulted in a significant performance boost. I've installed 1.7.0.4 on the server and have told my users to give it a workout. If they don't report any issues this time the issue was likely with the crappy config of my server, not the plugin.
[edit] Just had a test run done with the 'problem' machine at maximum speed and it ran for a good 10 minutes without any issues showing up in the console. I'll keep monitoring it, but for now I'm going to conclude that the issue was with my old server config, not the plugin.
@Xqtftqx
Hey Xqtftqx ,
I have updated the page, have a look at how to add the abilities. Then let me know how that goes. :)
Also the fact that you could pull a block out is a bug. Haha so thanks for letting me know. I have fixed that and posted an update 1.7.0.3
@Xqtftqx
Hey TinCow,
Hm thats unusual. Do you think you send me a few screenshots of the design. So i can remake it.
@kevupton
No, it occurred when a player cranked up a multi-piston smooth stone generator machine. Super_push had not been used, only chest_access. It had 6 pistons hooked up to it. After reboot he reduced it to 3 but it crashed again.
1.5gb is available to Minecraft. I keep intending to upgrade the thing, but it's such a chore I always put it off.
Works on 1.4.6 to pull blocks out of chests, but cant push blocks into furnace or chest.. no errors seen in log
@TinCow
Ah ok.
That is an out of memory error. Which means your server doesnt have access to enough memory...
I think i know what might be causing it. Did this occur when you combined the super_push ability with the chest_access ability?
how much memory does your server have access to?
Er... going to have to retract that last statement. It woks fine for individual pistons, but when a player with a 6-8 piston machine turned his device on the thing went a bit crazy and eventually crashed the server. This was the error it was spamming prior to the crash:
And this is what it said when it crashed:
Works perfectly, thanks!
@TinCow
Ok i have fixed that problem. I had just added something stupid and forget to get rid of it. haha
But that should be working now. Try that.
However I had added piston abilities now which i will cover in my description as soon as i get home. (in bout 8 hours) lol
But now what you will need to do in order to be able to push blocks or items into chest, you qill need to give your piston the chest_access ability via the:
"/pcability add chest_access" command
for a list of the abilities type "pcability list"
One cool feature you can try is the super_push ability which basically launches blocks and entities from the piston. (Surround the piston in obsidian to make it stronger)
and yes it can launch players too.
This ability combined with the chest_access ability allows players to shoot objects into chests :-)
have fun haha
Oh and the update is v1.7.0.1 so let me know if it works :-)
Thanks, I'm looking forward to testing it, though I just upgraded to 1.4.6-R0.1 (Beta), which seems to be breaking a lot of plugins that worked fine under 1.4.5. Hopefully it won't impact PistonChest; I'll let you know once the DL shows up.
[edit] Found the 1.7 version and installed it. PistonChest does not work, and the server spits back the following error on each piston movement attempt:
[INFO] [Piston Chest] Error processing piston info! column 9 out of bound [1,8]
@TinCow
I just uploaded version 1.7 which includes a lot of new feature too :) (I need to update my page to list these features)