[Mod] Throwing, PilzAdam version [throwing]

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

[Mod] Throwing, PilzAdam version [throwing]

by PilzAdam » Post

I've improved the throwing mod by Jeija.
Changes:
  • The arrow is 3D.
  • The bow wears out when you shoot.
  • The bow is crafted with the strings of my farming mod.
  • Stone and steel bow (more uses).
  • Fire arrows.
  • Teleport arrows.
  • Dig arrows (dig the node that they hit).
  • Build arrows (places the node that you have in your inventory at the first slot).
Depends:
  • default
  • bucket
  • fire
  • farming
License: WTFPL

GitHub: https://github.com/PilzAdam/throwing

Download: https://github.com/PilzAdam/throwing/zipball/master

Old versions:
Last edited by PilzAdam on Tue May 21, 2013 13:59, edited 1 time in total.

User avatar
cornernote
Member
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Post

very cool, +1

look forward to seeing uses for this tool

User avatar
Jeija
Member
Posts: 686
Joined: Fri Dec 23, 2011 21:46
Location: Nürtingen, Germany

by Jeija » Post

Good :D
Could you upload some screenshots?
Redstone for minetest: Mesecons (mesecons.net)

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Jeija wrote:Good :D
Could you upload some screenshots?
It looks same as your mod.

User avatar
Belgac
Member
Posts: 57
Joined: Wed Aug 08, 2012 15:27
Location: Brussels, Belgium

by Belgac » Post

Oh i love the idea of the teleport arrow :)
Contributor: Plant aging library
Creator: (soon)

User avatar
leo_rockway
Member
Posts: 211
Joined: Tue Jul 31, 2012 20:37

by leo_rockway » Post

One quick question: how does the bow pick which type of arrow to shoot?

Keep up the good work! I really like your mods =]
Try Skyblock for MineClone 2
Listen to this sound and music pack!

User avatar
InfinityProject
Member
Posts: 1009
Joined: Sat Mar 17, 2012 00:52
Location: World of Infinity, US

by InfinityProject » Post

Dang man one amazing mod after another! Absolutely amazing.

User avatar
RealBadAngel
Member
Posts: 557
Joined: Wed Jul 18, 2012 16:30

by RealBadAngel » Post

leo_rockway wrote:One quick question: how does the bow pick which type of arrow to shoot?

Keep up the good work! I really like your mods =]
from what i see in the code first found in the inventory
Last edited by RealBadAngel on Fri Aug 17, 2012 21:09, edited 1 time in total.

User avatar
mrtux
Member
Posts: 141
Joined: Mon Jun 25, 2012 02:41
Contact:

by mrtux » Post

Nice mod PilzAdam. Now you need to add TNT arrows! :P
thanks doge

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

RealBadAngel wrote:
leo_rockway wrote:One quick question: how does the bow pick which type of arrow to shoot?

Keep up the good work! I really like your mods =]
from what i see in the code first found in the inventory
Thats right. It checkes every slot of the inventory and takes the first arrow.

User avatar
leo_rockway
Member
Posts: 211
Joined: Tue Jul 31, 2012 20:37

by leo_rockway » Post

PilzAdam wrote:
RealBadAngel wrote:
leo_rockway wrote:One quick question: how does the bow pick which type of arrow to shoot?

Keep up the good work! I really like your mods =]
from what i see in the code first found in the inventory
Thats right. It checkes every slot of the inventory and takes the first arrow.
Thank you for your answers. I should've checked the code, but I felt lazy o.o
I just tried the transport arrow; I like the concept, hehe.
Try Skyblock for MineClone 2
Listen to this sound and music pack!

User avatar
InfinityProject
Member
Posts: 1009
Joined: Sat Mar 17, 2012 00:52
Location: World of Infinity, US

by InfinityProject » Post

Some arrow ideas:
Lava arrow (adds lava_source on block which it lands)
Water arrow (same as lava but water)
Explosive arrow (the name says it all)
Mob arrow (spawns a mob)
Shadow arrow? (leaves a huge shadow in are of landing... Could this be possible?
Reverse teleport arrow (teleports player or mob or item to you)
Multi arrow (fires multiple arrows at once)
Tree arrow (grows tree instantly on contact with node)

Those are just some ideas.

User avatar
Gambit
Member
Posts: 453
Joined: Sat Oct 29, 2011 19:31
Location: United States

by Gambit » Post

Someone needs to make a Molotov cocktail mod so it can be thrown now.
Current Projects: MineToon | PixelBOX
Gambit's Checkmate Server - 43.65.296.232 - port: 30001

User avatar
alexcraft
Member
Posts: 66
Joined: Thu Sep 06, 2012 13:12
Location: minecraft

by alexcraft » Post

how do i craft it ???????????????

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

alexcraft wrote:how do i craft it ???????????????
bow:
string wood
string wood
string wood
Arrow
stick stick iron
Last edited by PilzAdam on Wed Oct 03, 2012 15:51, edited 1 time in total.

User avatar
cornernote
Member
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Post

deploy_nodes adds a new arrow for each deploy type:
sphere arrow
spiral arrow
building arrow
maze arrow
pyramid arrow
etc...

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Little update:
The arrow in the inventory at the right of the bow is taken instead of the first arrow in the inventory. So you can have more bows that shoot different arrows without open the inventory.

User avatar
Temperest
Member
Posts: 651
Joined: Tue Nov 15, 2011 23:13
GitHub: Uberi

by Temperest » Post

Good idea! I'd like to see it documented in the README though, along with the arrow types and what they do.
WorldEdit 1.0 released

The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Temperest wrote:Good idea! I'd like to see it documented in the README though, along with the arrow types and what they do.
This goes directly into my TODO list.

User avatar
CaKeSs
Member
Posts: 48
Joined: Sat Oct 13, 2012 02:48
Location: Philippines

by CaKeSs » Post

Problem here! It crashes mintest. I still like it.
lalalalala, Hit, dig, break, collect! -JusticeV before he fell in lava.
|Youtube||Unrealsoftware Account|Granite Mod|

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

CaKeSs wrote:It crashes mintest.
Can you give more information?

User avatar
Nubelite
Member
Posts: 161
Joined: Mon Jul 16, 2012 23:10

by Nubelite » Post

When you hit another player the game crashes with the following error.

error_message = ServerError: LuaError: error running function 'on_step': attempt to index a number value

It appears to be the damage the arrow causes.


maybe using
obj:set_hp(obj:get_hp() - ArrowDamage)
might work

or having a function be called to figure out the damage based on the players armor value, so this can work well with the armor mod.

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Nubelite wrote:When you hit another player the game crashes with the following error.

error_message = ServerError: LuaError: error running function 'on_step': attempt to index a number value

It appears to be the damage the arrow causes.


maybe using
obj:set_hp(obj:get_hp() - ArrowDamage)
might work

or having a function be called to figure out the damage based on the players armor value, so this can work well with the armor mod.
This error only appears in 0.4.3 stable. It is fixed in the current development version.

User avatar
Inocudom
Member
Posts: 3096
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Post

What is the current development version? This mod has potential.
You can now find my videos at BitChute: https://www.bitchute.com/channel/some_cheeky_jinuskian/

User avatar
Vent EXZX
New member
Posts: 9
Joined: Sun Oct 28, 2012 14:24

by Vent EXZX » Post

IT DOES NOT WORK ON MY MINE TEST
IT GOES: throw/init.lua

Post Reply

Who is online

Users browsing this forum: Skamiz Kazzarch and 10 guests