Craft-able Traps

Discussion in 'Plugin Requests' started by Regina715, Feb 6, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    Regina715

    Plugin category: Mechanics

    Suggested name: Craft-able Traps

    What I want: I'd like a plugin in which adds 5 traps that you can craft in the game. The first trap I would like is Punji sticks. When a player steps on the sticks (red carpet) they will take 6 hearts of damage. When they step off, they will take another 3 hearts of damage. The second trap I would like is a bear trap (green carpet). When the player steps on the bear trap they will get slowed so they can't move (for 30 seconds) and take 4 hearts of damage. The third trap I would like is landmine (yellow carpet). When a player steps on the trap the player will explode but the blocks around the trap won't be destroyed. The trap itself gets destroyed though. The fourth trap I would like is Spike wall (Cobble Stone Wall). Whenever an entity touches the wall they take 2 hearts of damage every second they are touching the wall. Last but not least, the fifth trap... The fifth trap is a alarm trigger trap (purple carpet). If an entity is on the trap, it will play the note block tune "G" over and Over again until the entity steps off.

    All crafting recipes are down below:

    PunjiSticks.png

    BearTrap.png

    Landmine.png

    SpikeWall.png

    AlarmTrap.png

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: No permissions needed for this plugin.

    When I'd like it by: Any time is good for me :)
     
  2. Offline

    WHQ

    This sounds like fun, but also a lot of work. I might consider this to be my next project
     
  3. Nice idea!

    Will start to work on it soon.. if I finish it before @WHQ ... (Which I highly doubt) I'll post it
     
  4. Offline

    Evonoucono

    Do those damaging traps deal true damage? Or does it take armor into account? Is the landmine trap the only trap that disappears after something touches it?
     
  5. What if I finish it before you? :p
    I start working on it now, seems not so hard but fun to make!

    EDIT: All traps are done, only the trap location saving is left to differentiate the traps from normal blocks.
     
    Last edited: Feb 10, 2016
  6. Trap saving... ^^ completely forgot that the server could be reloaded...

    EDIT: Spent 3 days.. only to find out I didn't register events.. xD
     
  7. How did you manage the cobblestone wall collision detection? I got the bounding box for the player by testing (0.55 blocks from the middle of the cobblestone wall) and it only works if the player directly touches the block and isnt just in the block around it. It works on some mobs like villager, zombie, witch etc. but not on pig, cow.. :confused: I might need to look at AxisAlignedBB for each entity with reflections to get it working.
     
  8. I used onPlayerMoveEvent, found the blocks around the player and checked what they were...

    Still need to try this in-game to see what happens... the code seems fine though

    P.S. My laptop sux and can hardly run minecraft and the server... so by the time it loads up... I'm gone.. xD
    Still gonna try it do

    P.p.S. MAY THE BEST CODER WIN
     
  9. Problem:
    The collision checking finally works for every damageable entity now :D
    It's helpful to use F3 + B to see the bounding boxes:

    [​IMG]

    Crafting recipes and all traps are done, now the only thing that is left is the location saving..

    P.S: my laptop sucks too but I can still test it with 1-10 fps :p
     
    Last edited: Feb 14, 2016
  10. Looks like chu win.. :D

    'twas fun... if u need the code for the trap saving.. wait.. you didn't do the trap saving.. guess it is still on then!
    Hopefully you don't get it until I finish that fourth trap...
     
Thread Status:
Not open for further replies.

Share This Page