Combat Fireworks

Discussion in 'Plugin Requests' started by leokiller97, Sep 22, 2015.

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

    leokiller97

    Plugin category: Mechanics

    Suggested name: CombatFireworks

    What I want: When I used Skript, skQuery and RandomSK, I made a little skript that allowed players to attacks mobs with a 25% chance to POP (not launch) a firework on the mob's location, with the color being decided by the item that is hold. This was a great combat improvement, making it cooler and less boring: I would love to create that again, but skQuery is updated, and no longer works with Spigot. I think a config feature to define items, chance of the firework and color would be awesome, making it even more customizable.

    Ideas for commands: Maybe a reload command for when config changes are made and you don't want to restart/reload the whole server.

    Ideas for permissions: None.

    When I'd like it by: Possibly before the 3rd of October ^^

    Thanks guys and have an awesome day!
     
  2. Offline

    mcdorli

    Hello, i try to look into it, but just a fast question, what dou you mean, when you say "with the color being decided by the item that is hold"? It needs to work, like if i hit with something out of diamond, i get a greenish blue color, and when i hit something with a weapon out of gold, it would be gold color, or like if i hit with an axe, i get green, if with sword, then its blue? I don't want to bruteforce it and have something different, when i hit with a stick, or with a wooden plank.

    EDIT:
    Just to make you some choices, i could make the color:

    - Totally random
    - Different between weapon types
    - Different between material types
    - Different between damages
    - Different between the time of the day
    - Different between server time
    - Different between how many xp the player has

    I think that's all what i can think of, but if you don't want any of them, you can suggest one or if you like the idea of these, just write down the details.
     
    Last edited: Sep 25, 2015
  3. Offline

    leokiller97

    Hey,
    First of all, thanks for answering ^^

    It highly depends on the fact If you want to make it an official plugin or not: I think other people would enjoy a config, however I only need specific ones, so I do not need it.
    Basically, once you attack a mob/player, a firework of a specific color pops. The firework's color is decided by the item that the player is holding while attacking. Each one of them has a 50% to appear.
    These are the ones I'd use:
    Wood Shovel -- Yellow
    Wood Pickaxe -- Purple/Green
    Wood Axe -- Red
    Wood Hoe -- Gray
    Wood Sword -- White/Light Blue

    Stone Shovel -- Blue
    Stone Pickaxe -- Purple/Red
    Stone Axe -- Cyan
    Stone Hoe -- Dark Blue
    Stone Sword -- Very Light Blue

    Iron Shovel -- Green/Brown
    Iron Pickaxe -- Orange
    Iron Axe -- Brown
    Iron Hoe -- White
    Iron Sword -- Green

    Golden Shovel -- Orange
    Golden Pickaxe -- Cyan/Dark Green
    Golden Axe -- Green/Brown
    Golden Hoe -- White
    Golden Sword -- Orange

    Diamond Shovel -- White/Light Blue
    Diamond Pickaxe -- Purple/Green
    Diamond Axe -- Purple/Blue
    Diamond Hoe -- Cyan
    Diamond Sword -- Pink/Yellow

    The ones with two colors: it'd be awesome If you could make those bicolor ^^
    Oh, and thanks again for answering: I really appreciate it!

    -Leo
     
  4. Offline

    mcdorli

    Ok, i'll make a config file, just for the sake, and if you change your mind sometime.
     
  5. Offline

    leokiller97

    Hey,
    Thanks a lot!
     
  6. Offline

    mcdorli

    As it turns out, making the fireworks explode immediately is close to imposibble, is it good too, that it explodes after like a second? If not, i could use particles (lava and water droplets, those fireball like thingys, that comes out of the lava, hearts, etc. Here are all of them: http://minecraft.gamepedia.com/Particles), they cannot be colored, but thre are million types of them.
     
  7. Offline

    leokiller97

    Hey,
    It's O.K. I prefer to use instant particles. Choose the ones you like that resemble the colors: I have no idea of how those look like. Also, in addition to the particles, could you add the firework explode sound? :p
     
    Last edited: Sep 26, 2015
  8. Offline

    mcdorli

    There are images on the link i posted about the particles, and yes, i can include the firework sound.
     
  9. Offline

    leokiller97

    Where? I can't see the images.

    EDIT: Changed browser, I can see them now. Thanks! I'll make a list now.
     
  10. Offline

    mcdorli

    If you use adBlock for chrome, that could possbly kill the images, but if you see them with a another one, is fine too.
     
    leokiller97 likes this.
  11. Offline

    leokiller97

    Wood Shovel -- happyVillager
    Wood Pickaxe -- spell (regen) + spell (speed)
    Wood Axe -- heart
    Wood Hoe -- magicCrit
    Wood Sword -- snowshovel + magicCrit

    Stone Shovel -- magicCrit + spell (night vision)
    Stone Pickaxe -- firework spark + instantSpell (harming)
    Stone Axe -- snowshovel + magicCrit
    Stone Hoe -- spell (night vision)
    Stone Sword -- dripWater + cloud

    Iron Shovel -- happyVillager + townaura
    Iron Pickaxe -- angryVillager + flame
    Iron Axe -- townaura
    Iron Hoe -- magicCrit
    Iron Sword -- happyVillager + spell (leaping)

    Golden Shovel -- angryVillager + flame
    Golden Pickaxe -- spell (water breathing) + happyVillager
    Golden Axe -- townaura + happyVillager
    Golden Hoe -- magicCrit
    Golden Sword -- spell (fire resistance) + flame

    Diamond Shovel -- snowshovel + magicCrit
    Diamond Pickaxe -- portal + townaura
    Diamond Axe -- portal + spell (night vision)
    Diamond Hoe -- magicCrit
    Diamond Sword -- snowballpoof
     
  12. Offline

    I Al Istannen

    @mcdorli Some can actually be colored. I found this on reddit. It was mentioned a few times before though.
     
  13. Offline

    mcdorli

    This is a mod, the difference between the mods and the plugins is like the difference between painting a picture and giving it a nice border, you can't do this with plugins.
     
  14. Offline

    I Al Istannen

    @mcdorli That is *not* a mod. That is vanilla Minecraft.
     
  15. Offline

    mcdorli

    BTW.: I'm currently working on the plugin, I just didn't got enough time, this weekend i go somewhere, i can't do anythig then too. I really hope, i can end the pluhin today.

    Same, with command blocks, you can change the NBT data, with plugins, you can't do that. And the color is an NBT data.

    @leokiller97 I uploaded the project, I'm now waiting for approval.

    EDIT by Timtower: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Sep 30, 2015
    leokiller97 likes this.
  16. Offline

    leokiller97

    Thanks a lot mcdorli!!

    I'll try it ASAP!
     
  17. Offline

    I Al Istannen

    @mcdorli Of yourse cou can change NBT tags with plugins... Just not with the Bukkit API, but that is not really that much of a concern. And the really nice thing about the color is, that it is not an NBT tag and not a mod, but just the speed and dx, dy and dz values. Afaik You can set these when you want to spawn a particle (at least in the libs I used. Probably even with the normal method.).
     
  18. Offline

    mcdorli

  19. Offline

    leokiller97

    Hey!
    First of all thanks -A LOT- for the plugin, I really needed it ^^
    Second, it doesn't seem to work for me :(
    I checked the console and nothing relevant seems to be there. Everything I did was put the plugin into the plugins folder and reload.
     
  20. Offline

    mcdorli

    Try it like 20 time, it has 15% chance to spawn, that means, that it will spawn particles every 7 times, but i got it like for evedy 15 times. Tge second, that not every particle is fully visible, some of them are really small, try out more weapons
     
  21. Offline

    leokiller97

    Hey,

    Verified. Doesn't work, tried each weapon on a 350-HP MythicMob.
     
  22. Offline

    mcdorli

    @leokiller97 Does it show up, when you use the /pl command? If not, then you messed up something. I it is, then go in the plugins folder, and open the plugin with winrar(or anything you have for this, i think win 8 have something built-in), if it is empty, then redownload the plugin, if not, then the third step is to check, if it drops an error, if it drops, then send me the stack-trace (you can find it in tge logs folder in the latest txt file)

    Edit.: it can also interfer with a another plugin, and it doesn't work if the "mythicmob" isn't an entity, try to do a /killall entity or killall all, if it doesn't die, then it just simply won't work on him.
     
  23. Offline

    leokiller97

    Hey,
    It doesn't show up when I type in /pl. I opened the plugin with WinRAR, I think everything is in the right place. I am using Spigot 1.8.7, If that can help.
     
  24. Offline

    timtower Administrator Administrator Moderator

  25. Offline

    mcdorli

    @leokiller97 @timtower Or to hastebin.com, I personally like that more for codevor stack-trace, it' just cleaner.

    BTW.: @timtower, isn't the plugins with an error in them show up as red in the plugins list?
     
  26. Offline

    timtower Administrator Administrator Moderator

    I started with pastebin once, never bothered to change.
    Usually, but sometimes not, depends on the actual issue.
     
  27. Offline

    leokiller97

  28. Offline

    timtower Administrator Administrator Moderator

  29. Offline

    leokiller97

    http://pastebin.com/M6Yktpvs

    I don't know why it's messed up like that.

    EDIT: Looks like the CombatParticles plugin isn't the only plugin having that issue. Dunno what causes it though.
     
  30. Offline

    timtower Administrator Administrator Moderator

    @leokiller97 Because you are copying from the console window, not the latest.log
    But anyways:
    Plugin is compiled with java 8, server is running java 7.
     
Thread Status:
Not open for further replies.

Share This Page