Crates
Description
Did you play survival games and saw that some servers had crates that fall from the sky? Ever wanted those on your server? Well this plugin enables that for you!
(These don't randomly fall from the sky though, I might add that as a future feature)
What are crates?
If you have never played survivalgames, then crates are like retextured chests, but they are easier to store and you can place them together in any pattern (like 3 right next to eachother)
You can also open them if there is a block above, incase you need to put one in a small space.
How to use it
There are 2 ways of creating a crate, the first way is to shift+right click a chest, it will turn the chest into a crate and transfer its items too!
The 2nd way is to craft one, the crafting recipe is shown below:
(If the image is not loading, then the recipe is the same as making a chest but with a stick in the middle) Note: The crate looks like the front of a piston
Configuration
You can configure the plugin in the config.yml located in the plugin's folder.
It should look like this:
CreationMethods: Stick: Enabled: true ID: 280 Crafting: Enabled: true Recipe: - WWW - WSW - WWW - W = Wooden Planks, S = Stick, C = Chest
Known bugs
Currently none
when i install the plugin i placed a block and i got an error, this happen only with the plugin or its a conflict with another one?
permission to create crate?
is this crate like a normal chest but it just doesn't look like one and behaves differently (as in you can put 3 of them right next to each other without conflicts)?
@S1lverK3y
I know, but i'm planning on making this be more then just a retextured chest
@CommodoreAlpha
It uses damage value 6, but that won't work since the crates are stored in the plugins data folder (its stored x-y-z.txt), but you can change anything to that, like if you have a block you just do put together its x, y, and z (seperated by -), save it as a .txt file and put it into plugins/Crates/data
@Barnsey3017
I know that error, It happens whenever a block is placed, I'm fixing it now (but it should still work)
This plugin could easily being recreated using oresbfucator :D Simply make chests appear like id:33 blocks lol just saying
@bob000
That's like saying "add a way to turn dirt into stone." Why suggest turning one specific block into another when you could use the "/replace" command which lets you turn anything into anything?
But your question concerning WorldEdit does bring up a valid point. How would we go about turning blocks into crates? Or the better question would be, what damage value of the piston does this plugin utilise? (Unless you don't use damage values at all, but rather, NBT data.)
09:02:55 [severe] Could not pass event BlockPlaceEvent to Crates v1.1 09:02:55 [javastacktrace] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) 09:02:55 [javastacktrace] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 09:02:55 [javastacktrace] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) 09:02:55 [javastacktrace] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) 09:02:55 [javastacktrace] at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:114) 09:02:55 [javastacktrace] at net.minecraft.server.v1_6_R2.ItemBlock.processBlockPlace(ItemBlock.java:89) 09:02:55 [javastacktrace] at net.minecraft.server.v1_6_R2.ItemBlock.interactWith(ItemBlock.java:73) 09:02:55 [javastacktrace] at net.minecraft.server.v1_6_R2.ItemStack.placeItem(ItemStack.java:79) 09:02:55 [javastacktrace] at net.minecraft.server.v1_6_R2.PlayerInteractManager.interact(PlayerInteractManager.java:389) 09:02:55 [javastacktrace] at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:630) 09:02:55 [javastacktrace] at net.minecraft.server.v1_6_R2.Packet15Place.handle(SourceFile:58) 09:02:55 [javastacktrace] at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296) 09:02:55 [javastacktrace] at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:118) 09:02:55 [javastacktrace] at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37) 09:02:55 [javastacktrace] at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30) 09:02:55 [javastacktrace] at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590) 09:02:55 [javastacktrace] at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226) 09:02:55 [javastacktrace] at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486) 09:02:55 [javastacktrace] at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419) 09:02:55 [javastacktrace] at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) 09:02:55 [javastacktrace] Caused by: java.lang.NullPointerException 09:02:55 [javastacktrace] at com.hotmail.dillon_d.CrateListener.onBlockPlace(CrateListener.java:115) 09:02:55 [javastacktrace] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 09:02:55 [javastacktrace] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 09:02:55 [javastacktrace] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 09:02:55 [javastacktrace] at java.lang.reflect.Method.invoke(Unknown Source) 09:02:55 [javastacktrace] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
this happen when you make a crate
add a way to worldedit chests to crates.
@CommodoreAlpha
I'm working on that now actually
EDIT: I added that, i'm waiting for the moderators to accept it (its gonna be in v1.2)
Can you add a configurable option for the amount of inventory rows a crate can have? (The default for a normal, single chest is three rows, but some admins might want more or less rows than that.)
@S1lverK3y
sure
@qwenjgfujn
Are you using build crates v1.1?
Its working for me, but you can't open it.
didnt work for me on 1.6.2 on craftbukkit build #2811
looks great :)
Crypti0n can you also make configurable loot with percentages after 1.2?
@ByGxdz
They don't link to the sg plugin yet, but you can make them randomly generate in the sg world in v1.2
@ByGxdz
They don't link to the sg plugin yet, but you can make them randomly generate in the sg world in v1.2
and do they restock with the sg plugin?