[Mod] Slingshot [slingshot]

Post Reply
User avatar
AntumDeluge
Member
Posts: 213
Joined: Sun Aug 07, 2016 05:42
GitHub: AntumDeluge
IRC: AntumDeluge
Contact:

[Mod] Slingshot [slingshot]

by AntumDeluge » Post

Description:

Adds slingshots that can throw inventory items as ammunition.

The original code was extracted from hook mod by AiTechEye.

Currently there are two slingshots: slingshot:wood & slingshot:iron (more durable & throws further than wood)

Image

Licensing:
  • Code:
    • Original code by AiTechEye: CC0
    • Code by Jordan Irwin (AntumDeluge): MIT
  • Textures: CC0
Requirements:
  • Minetest version 5.0.0
  • Depends: none
  • Optional depends:
    • default (required for craft recipe)
    • technic (changes craft recipes to use rubber band)
    • xdecor (workbench can be used to repair slingshots)
    • workbench (can be used to repair slingshots)
Usage:
  • Left-click: Throws items from slot right of slingshot.
Crafting:
Spoiler

Legend:

Code: Select all

SI = default:steel_ingot
ST = default:stick
RB = slingshot:rubber_band
TR = technic:rubber
TL = technic:raw_latex
Recipes:

wooden slingshot:

Code: Select all

  ╔════╦════╦════╗
  ║ ST ║    ║ ST ║
  ╠════╬════╬════╣
  ║    ║ ST ║    ║
  ╠════╬════╬════╣
  ║    ║ ST ║    ║
  ╚════╩════╩════╝
wooden slingshot (with technic & rubber band required):

Code: Select all

  ╔════╦════╦════╗
  ║ ST ║ RB ║ ST ║
  ╠════╬════╬════╣
  ║    ║ ST ║    ║
  ╠════╬════╬════╣
  ║    ║ ST ║    ║
  ╚════╩════╩════╝
iron slingshot:

Code: Select all

  ╔════╦════╦════╗
  ║ SI ║    ║ SI ║
  ╠════╬════╬════╣
  ║    ║ SI ║    ║
  ╠════╬════╬════╣
  ║    ║ SI ║    ║
  ╚════╩════╩════╝
iron slingshot (with technic & rubber band required):

Code: Select all

  ╔════╦════╦════╗
  ║ SI ║ RB ║ SI ║
  ╠════╬════╬════╣
  ║    ║ SI ║    ║
  ╠════╬════╬════╣
  ║    ║ SI ║    ║
  ╚════╩════╩════╝
rubber band:

Code: Select all

  ╔════╦════╦════╗
  ║ TL ║ TL ║    ║
  ╠════╬════╬════╣
  ║ TL ║    ║ TL ║
  ╠════╬════╬════╣
  ║    ║ TL ║ TL ║
  ╚════╩════╩════╝
rubber band (shapeless):

Code: Select all

  ╔════╗
  ║ TR ║
  ╚════╝
Settings:

Code: Select all

slingshot.old_textures
	- Use old 16x16 textures.
	- type:    bool
	- default: false

slingshot.ammos
	- Value of these items will be added to slingshot attack when thrown.
	- type:    string (comma-separated key=value list)
	- default: default:mese_crystal=5
Links:
Last edited by AntumDeluge on Thu Jun 10, 2021 20:35, edited 9 times in total.

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

Re: [Mod] Slingshot [0.1] [slingshot]

by azekill_DIABLO » Post

Isn't ther a slingshot mod released something like 5 days ago? anyway, we never have enough slingshots...
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
AntumDeluge
Member
Posts: 213
Joined: Sun Aug 07, 2016 05:42
GitHub: AntumDeluge
IRC: AntumDeluge
Contact:

Re: [Mod] Slingshot [0.1] [slingshot]

by AntumDeluge » Post

The only mod that I've found with a slingshot, so far, is hook.

dawgdoc
Member
Posts: 260
Joined: Mon Feb 27, 2017 01:10
GitHub: dawgdoc

Re: [Mod] Slingshot [0.1] [slingshot]

by dawgdoc » Post

azekill_DIABLO wrote:Isn't ther a slingshot mod released something like 5 days ago? anyway, we never have enough slingshots...
I think either maikerumine or tumeninodes created one in the past few months.

EDIT: Sorry, it was texmex who created a sling mod. [Mod] Throw any item or stack of items far away [sling]
Give a man a fish, feed him for a day. Give a kid a fish, it's going to die.

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

Re: [Mod] Slingshot [0.1] [slingshot]

by azekill_DIABLO » Post

dawgdoc wrote:
azekill_DIABLO wrote:Isn't ther a slingshot mod released something like 5 days ago? anyway, we never have enough slingshots...
I think either maikerumine or tumeninodes created one in the past few months.

EDIT: Sorry, it was texmex who created a sling mod. [Mod] Throw any item or stack of items far away [sling]
it was last week IMHO.

EDIT: idk, i disabled date on posts.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
AntumDeluge
Member
Posts: 213
Joined: Sun Aug 07, 2016 05:42
GitHub: AntumDeluge
IRC: AntumDeluge
Contact:

Re: [Mod] Slingshot [0.1] [slingshot]

by AntumDeluge » Post

Nice. And it uses the throwing API. I was thinking about doing that, but the slingshot from hook already had (somewhat) functional throwing code.

User avatar
AntumDeluge
Member
Posts: 213
Joined: Sun Aug 07, 2016 05:42
GitHub: AntumDeluge
IRC: AntumDeluge
Contact:

Re: [Mod] Slingshot [0.2] [slingshot]

by AntumDeluge » Post

Updated to work with creative mode.
  • Slingshots will not wear & break.
  • Thrown items are not removed from inventory.

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

Re: [Mod] Slingshot [0.2] [slingshot]

by azekill_DIABLO » Post

+1
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests