[Mod] Throw any item or stack of items far away [sling]

Post Reply
User avatar
texmex
Member
Posts: 1752
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

[Mod] Throw any item or stack of items far away [sling]

by texmex » Post

Sling
License: LGPLv3/CC BY-SA 3.0

Image

Description
Sling enables item stack and single item throwing of any item. It's useful in multiplayer.

Notes
Sling can be played with Minetest 0.4.16 or above.
It depends on throwing.

Big thanks to paly2 for not only expanding the API for the mod's needs but also aiding immensely in writing it as well.

List of features

- Left click to throw the whole stack of items placed directly to the right of the sling.
- Sneak and left click to throw a single item from a stack of items placed directly to the right of the sling.

Known issues
- Odd looking behavior when thrown entity lands (because it is spawned anew).

Bug reports and suggestions
You can report bugs or suggest ideas on GitHub or here in the thread.

Links
- Download ZIP
- Source
Mods | Support Mesehub: bc1qluuests9rxmlnvpjrhsnyjg9ucwy6z3r0y3srw

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Throw any item or stack of items far away [sling]

by azekill_DIABLO » Post

I love this little thing! Does is break glass?

User avatar
necron099
Member
Posts: 63
Joined: Wed Feb 27, 2013 16:10
Location: Florida

Re: [Mod] Throw any item or stack of items far away [sling]

by necron099 » Post

Will you be able to fling lava sources with this? If that's the case I'll have a good reason to move up to 0.4.16 :)

User avatar
texmex
Member
Posts: 1752
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Throw any item or stack of items far away [sling]

by texmex » Post

necron099 wrote:Will you be able to fling lava sources with this? If that's the case I'll have a good reason to move up to 0.4.16 :)
Like it says, "any item". :)
Mods | Support Mesehub: bc1qluuests9rxmlnvpjrhsnyjg9ucwy6z3r0y3srw

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Throw any item or stack of items far away [sling]

by azekill_DIABLO » Post

If I lanch a sling with this? a spawnegg? air?

User avatar
texmex
Member
Posts: 1752
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Throw any item or stack of items far away [sling]

by texmex » Post

azekill_DIABLO wrote:If I lanch a sling with this? a spawnegg? air?
Try it!
Mods | Support Mesehub: bc1qluuests9rxmlnvpjrhsnyjg9ucwy6z3r0y3srw

User avatar
TumeniNodes
Member
Posts: 2874
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: [Mod] Throw any item or stack of items far away [sling]

by TumeniNodes » Post

it's fun, thanks!
now we just need settable fuse timers for tnt... and the ability to throw other players :D
Ich mag keine grünen Eier und Schinken, ich mag sie nicht Sam I Am

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Throw any item or stack of items far away [sling]

by azekill_DIABLO » Post

TumeniNodes wrote:and the ability to throw other players :D
xD that a strong sling then!

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Throw any item or stack of items far away [sling]

by azekill_DIABLO » Post

texmex wrote:
azekill_DIABLO wrote:If I lanch a sling with this? a spawnegg? air?
Try it!
i tried. You can lauch everything except air xD

User avatar
LMD
Member
Posts: 931
Joined: Sat Apr 08, 2017 08:16
GitHub: appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:

Re: [Mod] Throw any item or stack of items far away [sling]

by LMD » Post

Good basic mod, but to improve it even more you should assign a "weight" value to items, and items should be able to have an on_land function. "Weight" value could be based on how easy node can be destroyed.
My stuff: Projects - Mods - Website

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests