Page 3 of 4

PostPosted: Fri Jan 27, 2012 21:14
by Jeija
oh thats what you meant...
btw I updated the mod > wait a few minutest until uploaded

PostPosted: Fri Feb 10, 2012 00:16
by rahonejm
Bugged on the latest version :( The game shuts when you shot...

PostPosted: Fri Feb 10, 2012 16:09
by Jeija
The latest mod version 0.13 works for me with the latest minetest version.

PostPosted: Fri Feb 10, 2012 18:26
by dannydark
rahonejm wrote:Bugged on the latest version :( The game shuts when you shot...


hmmm, Works for me on the latest build.

What does your debug.txt say?

EDIT: @Jeija I did a bit of cleaning on this mod as there was still some output strings that where formatted the old way, not that it caused any problems just thought I would fix the formatting ^_^ I've added it here: http://pastebin.com/q47eYQTR if your interested.

PostPosted: Fri Feb 10, 2012 20:09
by Jeija
I uploaded this mod to github:
https://github.com/Jeija/minetest-mod-throwing.
I also commited your changes, dannydark! If anyone wants to have acces on GitHub, tell me your username!

PostPosted: Fri Feb 10, 2012 20:23
by kahrl
Two things I noticed about the register_craftitem calls:
1. "image" is deprecated since 20120122, use "inventory_image"
2. "on_place_on_ground" and minetest.craftitem_place_item have been deleted, you can simply remove those.

PostPosted: Fri Feb 10, 2012 20:27
by Jeija
Kahrl, I commited your changes. Thx :D

PostPosted: Mon Feb 13, 2012 16:06
by MirceaKitsune
This is a very nice mod! Seems to work a lot like the MC bow as well. This one I hope will be included as part of the default mod and Minetest.

Image

Only objection is the crafting pattern for the bow. Instead of using planks there, I believe using sticks would be more appropriate. Otherwise, looks excellent and I'll try it out soon :)

PostPosted: Mon Feb 13, 2012 16:38
by Jordach
MirceaKitsune wrote:This is a very nice mod! Seems to work a lot like the MC bow as well. This one I hope will be included as part of the default mod and Minetest.

Image

Only objection is the crafting pattern for the bow. Instead of using planks there, I believe using sticks would be more appropriate. Otherwise, looks excellent and I'll try it out soon :)


Yeah, but it crashes on the newest dev for some reason.

And well done for saying default and not upstream, celeron says default is right and upstream is wrong. :)

PostPosted: Thu Feb 16, 2012 16:34
by cyberslayer
you make the best mods ever. you should ask celeron55 to inplent this and the redstone mod and maybye even the nyan cat one =D

PostPosted: Sun Mar 04, 2012 07:24
by randomproof
I was having a problem with arrows hitting another arrow on the ground and disappearing So I fixed the code a little. Basically, a craft item on the ground is an object entity that will be returned by 'get_objects_inside_radius' so the arrow adds damage to it and disappearing. This makes no sense so I added a check to make sure the object entity already has hit points before it attacks it. Also 'obj:get_entity_name()' is supposed to be DEPRECATED so I replaced that with the correct method.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
-- Arrow_entity.on_step()--> called when arrow is moving
THROWING_ARROW_ENTITY.on_step = function(self, dtime)
    self.timer=self.timer+dtime
    local pos = self.object:getpos()
    local node = minetest.env:get_node(pos)

    -- When arrow is away from player (after 0.2 seconds): Cause damage to mobs and players
    if self.timer>0.2 then
        local objs = minetest.env:get_objects_inside_radius({x=pos.x,y=pos.y,z=pos.z}, 2)
        for k, obj in pairs(objs) do
            if obj:get_luaentity() ~= nil then
                name = obj:get_luaentity().name
            else
                name = nil
            end
            if name ~= "throwing:arrow_entity" and obj:get_hp() > 0 then
                obj:set_hp(obj:get_hp()-ARROW_DAMAGE)
                if obj:get_hp()<=0 then
                    obj:remove()
                end
                self.object:remove()
                return
            end
        end
    end

    -- Become item when hitting a node
    if self.lastpos.x~=nil then --If there is no lastpos for some reason
        if node.name ~= "air" then
            minetest.env:add_item(self.lastpos, 'throwing:arrow')
            self.object:remove()
            return
        end
    end
    self.lastpos={x=pos.x, y=pos.y, z=pos.z} -- Set lastpos-->Item will be added at last pos outside the node
end

PostPosted: Sun Mar 04, 2012 07:26
by Jeija
Thanks a lot; I think I will upload the mod on GitHub and commit your changes.

PostPosted: Mon Jun 04, 2012 19:10
by Kexyl Redwake I
I put the unzipped folder, which contained the textures, the stuff needed for the mod, you know, into the mod folder. But when i went to run Minetest, it says that there's a problem loading the bow mod. Do I need to rename the folder or something?

PostPosted: Mon Jun 04, 2012 20:26
by Temperest
The folder must be named "throwing". Not "bow", not "shooting", "throwing". Any other name will not work.

Ensure that the init.lua file is directly inside this folder, and not in a subfolder.

PostPosted: Mon Jun 04, 2012 22:41
by Kexyl Redwake I
Okay, thanks Temperest!

PostPosted: Tue Jul 17, 2012 06:24
by Nubelite
I can't seem to get this mod to work for me.

Folder is named throwing, i have tried all the download options in this thread for the mod.

I have the junglegrass mod installed, do i need another one? I am using the /giveme bow to get it to see it. I made custom textures and i also used some default ones.

Also tried crafting with the junglegrass and got no result

Running ubuntu as well. any ideas?

PostPosted: Tue Jul 17, 2012 08:56
by Calinou
I have the junglegrass mod installed

You do not have to install the "junglegrass" mod by VanessaE, but you can install it if you want.
Double-check the recipes; it works for me.

PostPosted: Tue Jul 17, 2012 09:21
by Stef
im will try to make morearrows mod, including:

-TNT arrows
-FIRE arrows

other arrows needed???

PostPosted: Wed Jul 18, 2012 02:27
by Nubelite
i got it to work. i was using an install one but with compile it worked like a charm.

here are the templates i made, the bow does not look the best in game but the arrow is not to shabby. the bow and arrow are 256x256, the throwing is 100x100.

Image

tar.gz google download
https://docs.google.com/open?id=0B4ukn3a4vjv3WDBaOWxZR0lGQ2M

Zip google download
https://docs.google.com/open?id=0B4ukn3a4vjv3cTdKRWh0MkVMRVU

PostPosted: Wed Jul 18, 2012 02:28
by Nubelite
Stef wrote:im will try to make morearrows mod, including:

-TNT arrows
-FIRE arrows

other arrows needed???



can do wood, stone, and iron also for a more basic early stage range.

PostPosted: Wed Jul 18, 2012 04:44
by VanessaE
I recognize that texture pack ;-)

PostPosted: Fri Jul 20, 2012 14:29
by Nexdah
+1

PostPosted: Tue Jul 24, 2012 21:29
by mrtux
Stef wrote:im will try to make morearrows mod, including:

-TNT arrows
-FIRE arrows

other arrows needed???

Nyan arrows?

PostPosted: Mon Jul 30, 2012 14:27
by Topywo
When I shot myself I got kicked out of the game. I used the latest minetest version 0.4.2 (rc1)

PostPosted: Thu Aug 16, 2012 10:40
by PilzAdam
If you are still supporting this mod you can use the strings of my farming mod: http://minetest.net/forum/viewtopic.php?id=2787

PostPosted: Fri Aug 17, 2012 14:52
by PilzAdam

PostPosted: Sat Oct 20, 2012 13:56
by pompom
+∞

PostPosted: Sun Oct 21, 2012 17:06
by GloopMaster
Please post on the correct topic. This version is out of date.

PostPosted: Wed Nov 07, 2012 17:01
by H6nry
I've made a variation of this mod, and now you can shoot tnt, fire, lava, and of course the normal arrows.
It is not completed and not very good code, but you can use it.
Make sure, that you have only one kind of arrows in your inventory, otherwise it may do strange things.
If you didn't install the nuke mod you can use only lava, fire and arrow.
Download https://github.com/H6nry/Minetest_Throwing

@jeija: I hope it's ok, if i use your code



EDIT:sorry i put in the wrong one. corrected.

Re: [Mod] Throwing [0.13] [throwing]

PostPosted: Mon May 18, 2015 22:56
by programmingchicken
The crafting recipe images apparently aren't being hosted anymore.