Throwables
Throwables
Throwables is a plugin-which is being expanded constantly-that allows you to throw more items! This plugin is ideal on pvp servers and rpg servers, where you want to make your server more customized!
These items are generally useless items, and (in the future) they will be configurable.
Current Features
| Item | Description |
|---|---|
| Slimeball | Slow down your enemies for a few seconds! |
| Ink Sack | Give your enemies blindness for a few seconds! |
| Flint | Throw swords at your enemy! |
| Bone | Push players backwards! (As of v1.1) |
| Brick | Throw a nether brick (item) to knock out your enemies! (As of v1.1.1) |
| Cow | Right-click leather to spawn a cow! (Not recommended for players, as they can create too many cows at the moment) (Will be fixed with cool downs.) (As of v1.1.1) |
How to Use
"Throw" an item by right-clicking it. Hit enemies by pointing your cursor at them while clicking!
Installation
Simply place it in your plugins folder, and it will work!
Videos
If you want to get your video featured here, post in the comments below!
Note
- This project is still in early stages of development. Check back later for tons of new features!
- There may be bugs. File a ticket!
- This was made for a plugin request. Link
-
View User Profile
-
Send Message
Posted Sep 3, 2013@Axe2760
I guess you could send packets like ProtocolLib does, but...
yeah.
-
View User Profile
-
Send Message
Posted Sep 3, 2013@CommodoreAlpha
Nah you've got my mind turning mate, I'm very curious - you could throw a snowball, but you couldn't modify the snowball to show the item.
So I suppose you've meant that when the snowball hits the player give the effects. If so then read the link to the plugin request, the whole point was to "throw" items, albeit I'm adding a lot more features and items than the original request :P
-
View User Profile
-
Send Message
Posted Sep 3, 2013When you "throw" the item via right-clicking, the projectile is a snowball. Definitely possible, albeit simple yet uncreative. Just keep doing what you're doing and ignore the fact that I even commented in your plugin. :P
-
View User Profile
-
Send Message
Posted Sep 3, 2013@CommodoreAlpha
I understand what you're asking, but what I don't understand, is how would you use a snowball for this? It doesn't seem possible.
-
View User Profile
-
Send Message
Posted Sep 3, 2013I was asking about whether you use an item entity or a snowball, because a snowball just seemed "simpler" and less error-prone than using an item entity (not implying your plugin is buggy though).
-
View User Profile
-
Send Message
Posted Sep 3, 2013@deleted_10000664
Oh derp, actually it won't do any damage/cause lag. The way it works, if it finds an entity in that range it applies the effect, and then removes the entity and cancels the event. Therefore I believe there will actually be no iterating over entities after it finds it's first "hit"
-
View User Profile
-
Send Message
Posted Sep 3, 2013@deleted_10000664
Hahaha yeah, the way I did it,
there is seemingly no way to circumvent that lag:( Hopefully the xp orb would be on the ground, so the item would remove itself first or before lagging. Will test it out, thanks for that :) I would never have thought of that.-
View User Profile
-
Send Message
Posted Sep 3, 2013@Axe2760
Ahhhh...
Should have thought of that.
Imagine if someone throws it into a field of exp orbs :O
-
View User Profile
-
Send Message
Posted Sep 3, 2013@deleted_10000664
Nearby entities. I first check to see if it hit the ground, if not then it will iterate over nearby entities and run the code.
The source will be public soon :)
-
View User Profile
-
Send Message
Posted Sep 3, 2013What do you use to detect the entity hitting a player?
-
View User Profile
-
Send Message
Posted Sep 2, 2013The code itself is a really simple thing, I'll be putting the source to github soon.
-
View User Profile
-
Send Message
Posted Sep 2, 2013@WhatABrokenWorld
Can't get to my computer for about 16 hours, but I see what went wrong. Thank you so much, next time file a ticket though. :) Will be fixed in the next day.
@CommodoreAlpha Item entities, I don't understand how a snowball would be applicable. ?
-
View User Profile
-
Send Message
Posted Sep 2, 2013What projectile do you use? An item entity or a snowball?
-
View User Profile
-
Send Message
Posted Sep 2, 2013ok so i found a bug, ink sack through fine, and the through image for slime balls are messed up, when you through a slime ball it shows it coming out of your legs. and it won't let me through a sword
-
View User Profile
-
Send Message
Posted Sep 2, 2013@WhatABrokenWorld
Cool, let me know what you think of it :) What should be added, what should be changed, what could make it better? :)
-
View User Profile
-
Send Message
Posted Sep 2, 2013I haven't tested it yet but i'm about to download. sound very cool
-
View User Profile
-
Send Message
Posted Sep 2, 2013@RafaSKB
That's what I thought. :/ But flint isn't an entity?
-
View User Profile
-
Send Message
Posted Sep 2, 2013@Axe2760
You can't, unless it's an instance of Projectile. Wouldn't work for Flint, for an example.
-
View User Profile
-
Send Message
Posted Sep 2, 2013@Janmm14
Interesting, I didn't think you could just shoot any entity as a projectile? And as for removing from the inventory, i will make it configurable :) However, unless it is desperately needed, I would like to add quite a few more items first.
-
View User Profile
-
Send Message
Posted Sep 2, 2013Hi!
Why you don't remove the thrown item of the inventory and use player.shootProjectile(Snowball.class), remember the entity id and do it that way? I think that looks better and it is much more realistic.