[REQ] Jump Shockwave

Discussion in 'Archived: Plugin Requests' started by TraRanger109455, Mar 18, 2012.

  1. Offline

    TraRanger109455

    I am here to request a very simple plugin. A plugin that gives op's and select players the ability to have superjump and when they hit the ground it creates and explosion or shockwave. I was thinking about this plugin when i was playing on my server and watching ironman. Would someone be willing to create this plugin?
     
  2. Offline

    thepig

    Do you want the explosion to damage other players and blocks?
     
  3. Offline

    TraRanger109455

    not necessarily players but to where it creates a hole in the ground
     
  4. Offline

    thepig

    So explosion damages blocks but not players?
     
  5. Offline

    TraRanger109455

  6. Offline

    thepig

  7. On it! Give me some few..!:)

    thepig

    There is no event on jumping, just moving! So, to define if the player is jumping or moving, takes some time!

    The Explosion is esay tho! I can also add ligthing effect, sound effects, fire effects, potion effects, what ever ingame effect yah like!

    What do you think TraRanger109455 ?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  8. Offline

    thepig

    Yeah, I don't see a jump event either.

    Your best bet is to use the EntityDamageEvent, check if it is a player, get the cause, cancel if it is from falling damage, and get the location of the player and create an explosion there that doesn't hurt mobs but damages blocks.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  9. Nope, but onPlayerMoveEvent you can check the block and location the player moved from, and too, so I might be able to check if the player moved 1 block up, and if he did, I could get the block 100 blocksY from that block, and teleport him there!

    This is the only way to do it, if there is no event onPlayerJump, or any methods for it!

    I can ofc get the player to teleport to each block up to the 100th block, and it will look like he is jumping, but... thats some heavy lagg maker if you ask me!:p

    That part is not hard to make, its no problame to make an explosion where the player lands after the jump, and its no problames to make the explosion damage only blocks, and not players! BUT, its the superjump thats the problame!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  10. Offline

    thepig

    Maybe you could add the commands /superjump to allow the player to jump a configurable number of blocks high, and /shockwave for an optional second part. http://forums.bukkit.org/threads/fu...-into-the-air-with-cool-smoke-1-0-1-r1.22977/ Check if the player moved up one block, then rocket them a configurable amount of blocks high, and cancel the fall damage.
     
  11. Offline

    TraRanger109455

    what about jumping of, say a building and hitting the ground, without the superjump
     
  12. Offline

    thepig

    I was thinking about that, would you prefer with superjump or no superjump and just falling off high platforms and creating explosions?
     
  13. Okey, this might work;


    Code:
    @EventHandler
        public void onPlayerMove(PlayerMoveEvent event){
            Player player = event.getPlayer();
            Block to = (Block) event.getTo();
            Block from = player.getLocation().getBlock().getRelative(BlockFace.DOWN);
                if(!from.isEmpty() && (!from.isLiquid())){
                    if(to.isEmpty()){
    Nah, didnt work!:/

    I can create the explosion effect when the player move, whit a command that turns it of and on!

    But before I can make this only happens when he jumps.. I have to use abit more time to figure out how to define that!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  14. Offline

    TraRanger109455

    without the super jump would be just fine, i dont know much about code so i dont know how that would change it
     
  15. Offline

    thepig

    MariusAlexanderWinsjansen this is for you
     
  16. TraRanger109455
    You should learn too tagg peoples like thepig did! Simply just type "@" and the name of the users!

    So, if someone is typing the command /js enable, the player should have explosion on the blocks behind them, that destroys the blocks, but doesnt harm the players, and when they type /js disable, it should stop?!

    Thats esay, but... Do you really want the player to be able to do this..EVEN if they are OP, this is going to create alot of explosion holes!
     
  17. Offline

    TraRanger109455

    MariusAlexanderWinsjansen yes, yes, its a very dangerous plugin, maybe you could also configure it to where it doesnt damage blocks? that way it just creates the smoke and other effects
     

Share This Page