Human only iron pressure plates

Discussion in 'Archived: Plugin Requests' started by Maoman, Apr 27, 2011.

  1. Offline

    Maoman

    I'm just wondering if this is possible with the limitations of bukkit. So far wooden plates let just about anything press it, including falling items. Stone plates only let living things standing on it press it. So how about one step higher and make iron plates only allow humans to press it? They say notch has the funtionality already built into the program, but I heard that back in 1.2, and now, at 1.5, soon to be 1.6, still, nothing.

    I don't think you can make a new block with a bukkit plugin, so how about putting two iron ingots next to each other, just like youre gonna make an iron pressure plate, instead spawns only existing items, but in a way that looks unique and have that particular set up act as an 'iron' pressure plate? For example, maybe some random block, but, if possible, have it break like glass and not leave a drop (well, preferably, if possible, have it drop the two iron ingots you used)? Make it appear as something unique, like an iron block, bedrock, a defunct mobspawner or TNT block, or sponge, but have it still be breakable and either no drop or two irons.

    Feel free to add ideas or call me a noob for not knowing if/why this is impossible. XD
     
  2. Offline

    Shamebot

    As you say it isn't possible to add a new block, and it would be possible to use another block, but if you only want the functionality you could use Redstonechips and Mobsensor
     
  3. Offline

    Maoman

    While I admit that would work, and I'm not afraid of circuits (and in fact, are one of my favorite things to do in game), it's a lot of effort for such a simple goal. I just thought it'd be nice if we had 'iron' pressure plates, and if anyone was up to making the plugin, I'd be extremely grateful - enough to donate (which I rarely do, I admit).

    I've actually kinda been wanted to get into programming, as I've had many great ideas (discussed with my cousin and fiancée, who both play and mod - I host the server for us) but I don't enough freetime I'm willing to dedicate to learning it at the moment.
     
  4. Offline

    Shamebot

    It will create a config when the server gets stopped, Area specifies whether a player must stand directly on the plate or in the 3*3 area around it; the others should be obvious. Didn't test it very long, cows didn't press it. You need to build a stone plate on top of an iron block. Only players should be able to press it.
    No need to donate, i don't even have paypal or something and it was very easy to do, but if you're feeling generous, I'm a fan of the mentioned RedstoneChips, so you could support it instead.
    Source's inside.
    Edit: btw i tested it with a rather old craftbukkit
     

    Attached Files:

  5. Offline

    Maoman

    Wooooo! You sir, Mr Shamebot, are the least shameful botman I have ever known. May captchas yeild before your very glance and may a thousand codes compile for you smoothly! ^_^ Thank you! I'll test it tomorrow though, cause I actually am just about to go to bed for work tomorrow. >:I
     
  6. Offline

    Shamebot

    thank me when it turns out to be working:p, as said i didn't test it very well and on a very old craftbukkit, so good luck^^. lol you must be living on the exact other side of the world, at 7 a clock i have to be awake again -.- ^^
     
  7. Offline

    Maoman

    Works great, stone pressure plate on top of an iron block only lets me open the door, and a zombie stood directly on top of it and didn't do anything. However, two problems, if you don't mind working on it a bit more:

    1) The config file showed up, but was completely blank except for one empty pair of: {}

    2) Since iron is valuable and slabs are only two of the source block while a block is 9 iron ingots, how about... Brick? A stone plate on a brick block? Then it'd be brick pressure plates, I guess, but it works for me.
     
  8. Offline

    Shamebot

    Actually the config file is for setting the block types, so for the second I would have nothing to do if the first worked.
    Do you get an error?
    Code:
    BlockDownId: 42
    Area: false
    BlockId: 70
    This is the content of my config.yml in the IronPlate folder. Did you open it when the server was running?
    To be honest I've no idea why it isn't working, it's the first time I used the build in bukkit config.
    On which OS do you run it? Dunno whether that matters.
     
  9. Offline

    Maoman

    NVM. I don't know exactly why, but now it's there just fine - I guess it made the config file first with just an empty {} set, but then when I actually made the plate (I never thought to check again), it wrote the script then. *shrug* Thanks man, works like a charm, if after a bit of confusion! ^_^ Doesn't matter anymore, but i'm on OSX.
     
  10. Offline

    Shamebot

    Yeah true, it creates the settings when you first make a pressure plate, I forgot. Anyways, I hope you enjoy it.
    You can set the upper block too, for example if you wanted to use a woodplate (levers, etc. would work, too, but there's no sense in it, since zombies don't use them ^^).
    Btw if you think it might be useful for others feel free to release it somewhere, I'm too lazy :)
     
  11. Offline

    Maoman

    ^_^ Absoulutely, thanks a bunch, man.
     
  12. Offline

    Pixeladdiction

    Nice, been looking for something like this.

    Is it necessary to require a specific block under the pressure plate? I don't use stone plates for any other purpose.

    thanks!
     
  13. Offline

    Shamebot

    yes you do need to put a specific stone under it, but ist configurable, you can set it to whatever you want
     
  14. Offline

    Maoman

    Last edited by a moderator: May 14, 2016

Share This Page