ChangeSilkTouch
ChangeSilkTouch
Description
This mod allows you to change what blocks are able to be broken and collected with a SilkTouch tool.
By default, it makes SilkTouch tools work on monster spawners, (though they will not keep their monster type) but the configuration is very flexible, and can be used to make any type of block drop a stack of any other type of block if you so desire.
It is fairly simple, and I intend to keep it fairly simple. Feature requests for anything beyond the described functionality of this plugin will likely be denied. (But file bugs about anything that you see wrong!)
Note: This means that it is not getting permissions support.
Documentation
Source
Source is available on github and a binary is available here.
what game version is this?
@Nickbbeezy
That depends- do you want to entirely prevent a block from dropping, or do you want the user to be able to collect air? The former is doable (and may already work) but I don't think that Minecraft will allow air to be dropped,
Any chance of making it so air blocks can be used as valid block for the drops?
@ttiffom2016
Sorry about that; I misunderstood you. I suspect preciousstones is indeed causing your problem. I installed ChangeSilkTouch with your config alongside preciousstones, and I was able to reproduce your problem with any newly placed coal ore blocks. That is, if I place them using creative mode, they are created as "Sky Cannon" blocks, and are destroyed and drop the same; even with silk touch.
If however I find a coal block in the wild and break that using SilkTouch, everything works as expected. Does this describe your problem? If so I think everything is okay. A bit of a pain to test for rarer blocks, but at least coal is easy.
@alfiejz
Hey,
So I think preciousstones is part of the problem (see my answer to ttiffom2016 above) but I don't think it fully explains your problem. I can't read your configuration file correctly as you pasted it.. the wiki formats it strangely and I can't be sure what's going on. Could you please paste it to either http://pastebin.com or http://dev.bukkit.org/paste/ and comment with a link so that I can read it?
I have one guess as to what is wrong right now based on what I can see. If all of the "blockType: num" things are on one line, yaml will not know how to parse them, so it won't be able to determine what it needs to do. I'll be happy to help further if I can see your configuration clearly.
yes, i am using protection stones. thats y i want to prevent silk touch so i can control who gets them. i do want coal block and such dropped in place of coal ore wen using silk touch so that silk touch would still give them something more than just what they can get with a reg pickaxe.
@cppchriscpp
hello i have the exact same problem, i think he is using protectionstones plugin too, but when i start the server it says
14:10:39 [INFO] [ChangeSilkTouch] Enabling ChangeSilkTouch v1.2 14:10:39 [WARNING] [ChangeSilkTouch] One of the rows in config.yml had a blank block type. It has been skipped. 14:10:39 [WARNING] [ChangeSilkTouch] One of the rows in config.yml had a blank block type. It has been skipped. 14:10:39 [WARNING] [ChangeSilkTouch] One of the rows in config.yml had a blank block type. It has been skipped. 14:10:39 [INFO] [ChangeSilkTouch] ChangeSilkTouch version 1.2 is enabled!
here is my config file:
blocks:
@ttiffom2016
Hey,
So I tried out your config, and it seemed to mostly work for me. The one thing I'll point out is that you have the wrong values for a few things. For example, for the drop for coal ore, you put 173, which is the number for a coal block. I think you really wanted 263, which is the value for coal. I think most of what you want is here: http://www.minecraftwiki.net/wiki/Data_values#Item_IDs
That said, I did run into a problem pasting it in. I'm not sure if it was because I copied it from pastebin, but it put in tabs instead of spaces. In yml files, you have to use spaces; tabs will not work.
If you continue to have problems, let me know. I suspect you saw nothing in your server console, but if anything in there says ChangeSilkTouch, it'd be useful.
Hope this gets you going!
Chris
http://pastebin.com/YA1rJDaq
@ttiffom2016
Hm, a bit strange. Could you toss your config onto http://pastebin.com or something similar? I'll see if I can debug what is happening.
i am able to make the ice block turn into the snow block wen using the silk touch pick, but when i replace the exact numbers with mining coal ore to give coal block, it doesnt work. im trying to make it so that u cant silk touch coal, lapis, and diamond ore but no matter how i type it in, it still gives me the ore blocks. please help!
works perfect with bukkit 1.6- dev build
@kdthehun
Afraid you're stuck reloading all plugins or restarting the server for now; sorry.
Hi! Is there a console command to reload config? Or the only way to do it is to restart the server?
its a custom bukkit-forge etc combo allowing running of non bukkit forge mods at the same time without requiring conversion, unfortunately the odd bukkit plugin seems to break :(
@ohjays
I can't say I'd ever even seen that mod before this point. I can't say that I've tried it officially, but if it's compatible with craftbukkit I'd think you should be alright. I don't officially support any other mods, but if there's anything else I can do for you, let me know.
Does anyone have this working with the mcpc-plus version at all
@Josh1289op
@WiseHollow
This most likely won't need to be updated for 1.4. It hasn't needed any changes in ages; it's a simple plugin that works off of only Bukkit API stuff. Unless Bukkit suddenly decides to do an API breaking change (which is pretty rare nowadays) you'll be fine to use this.
Once we have an RB available, I'll test it and update the supported versions on the existing download, like I usually do.
In short, I haven't tested it yet but I don't expect to see any problems.
Update for 1.4.2 please :)
Is this working with 1.4.2?
@ryvix
The latest source code is in the git repository associated with this project; same as always.
@acaldra55
That's how spawners work in vanilla. This plugin makes no attempt to change that behavior; it just lets you pick them up. If you want that kind of functionality, I'd check out either Creaturebox (not sure if it's still in active development though) or SilkSpawners.