Change the Duribility of certain items say a Dirt Block to a the durability with an Obsidian Block but thats just an example that way people wouldnt be able to grief certain blocks, but anyways i was wondering if it was possible and if someone could do it. Bump i would just like to know if this is at all possible EDIT by Moderator: merged posts, please use the edit button instead of double posting.
whats the name of it? whats it called? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I don't know the name, I'm just saying the chance is high there is one. Search for something like block blacklist, etc.
A Bukkit plugin is a server-side mod. But I don't believe this would require a client mod; I think you could have a map of locations to damage, and increment the damage every time you receive a BLOCK_DAMAGE event. Then once it reaches the appropriate damage level, you tell it to break; if I recall correctly, the damage event has a function to do just that. The hardest part probably would be detecting that the player has stopped mining so you can reset the damage to zero.
Or you could spoof a block(a ton of work) and change the durability. It would have to be built against craftbukkit though. Check out blocksOnGlass or whatever, that spoofs the glass block.
Building against CraftBukkit may allow you to directly edit the values that the server checks to determine a block's durability, but... no guarantees since they could just as easily be hard-coded or stored as final variables. I think what I described above would work better.