[Mod] Throwing [0.13] [throwing]

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Fri Jan 27, 2012 21:14

oh thats what you meant...
btw I updated the mod > wait a few minutest until uploaded
Last edited by Jeija on Fri Jan 27, 2012 21:17, edited 1 time in total.
Redstone for minetest: Mesecons (mesecons.net)
 

rahonejm
Member
 
Posts: 88
Joined: Wed Dec 28, 2011 01:58

by rahonejm » Fri Feb 10, 2012 00:16

Bugged on the latest version :( The game shuts when you shot...
Sorry for possible language mistakes
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Fri Feb 10, 2012 16:09

The latest mod version 0.13 works for me with the latest minetest version.
Redstone for minetest: Mesecons (mesecons.net)
 

User avatar
dannydark
Member
 
Posts: 428
Joined: Fri Aug 12, 2011 21:28

by dannydark » Fri Feb 10, 2012 18:26

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.
Last edited by dannydark on Fri Feb 10, 2012 18:39, edited 1 time in total.
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Fri Feb 10, 2012 20:09

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!
Redstone for minetest: Mesecons (mesecons.net)
 

kahrl
Member
 
Posts: 236
Joined: Fri Sep 02, 2011 07:51

by kahrl » Fri Feb 10, 2012 20:23

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.
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Fri Feb 10, 2012 20:27

Kahrl, I commited your changes. Thx :D
Last edited by Jeija on Fri Feb 10, 2012 20:27, edited 1 time in total.
Redstone for minetest: Mesecons (mesecons.net)
 

User avatar
MirceaKitsune
Member
 
Posts: 809
Joined: Sat May 21, 2011 22:31
GitHub: MirceaKitsune
IRC: Taoki
In-game: MirceaKitsune

by MirceaKitsune » Mon Feb 13, 2012 16:06

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 :)
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Mon Feb 13, 2012 16:38

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. :)

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

cyberslayer
Member
 
Posts: 28
Joined: Wed Feb 15, 2012 19:27

by cyberslayer » Thu Feb 16, 2012 16:34

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
 

randomproof
Member
 
Posts: 214
Joined: Thu Nov 17, 2011 06:31

by randomproof » Sun Mar 04, 2012 07:24

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
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Sun Mar 04, 2012 07:26

Thanks a lot; I think I will upload the mod on GitHub and commit your changes.
Redstone for minetest: Mesecons (mesecons.net)
 

Kexyl Redwake I
New member
 
Posts: 8
Joined: Sat Jun 02, 2012 18:55

by Kexyl Redwake I » Mon Jun 04, 2012 19:10

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?
"I reject your reality, and substitute my own!" ~ Adam Savage
 

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

by Temperest » Mon Jun 04, 2012 20:26

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.
WorldEdit 1.0 released

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

Kexyl Redwake I
New member
 
Posts: 8
Joined: Sat Jun 02, 2012 18:55

by Kexyl Redwake I » Mon Jun 04, 2012 22:41

Okay, thanks Temperest!
"I reject your reality, and substitute my own!" ~ Adam Savage
 

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

by Nubelite » Tue Jul 17, 2012 06:24

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?
Last edited by Nubelite on Tue Jul 17, 2012 07:24, edited 1 time in total.
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Tue Jul 17, 2012 08:56

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.
 

User avatar
Stef
Member
 
Posts: 394
Joined: Wed Apr 04, 2012 10:46

by Stef » Tue Jul 17, 2012 09:21

im will try to make morearrows mod, including:

-TNT arrows
-FIRE arrows

other arrows needed???
Sorry for my crappy english, im dutch :D
 

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

by Nubelite » Wed Jul 18, 2012 02:27

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
 

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

by Nubelite » Wed Jul 18, 2012 02:28

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.
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

by VanessaE » Wed Jul 18, 2012 04:44

I recognize that texture pack ;-)
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

User avatar
Nexdah
Member
 
Posts: 42
Joined: Fri Jul 06, 2012 22:35

by Nexdah » Fri Jul 20, 2012 14:29

+1
This is a Signature.


First ever Astronaut in Minetest.
 

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

by mrtux » Tue Jul 24, 2012 21:29

Stef wrote:im will try to make morearrows mod, including:

-TNT arrows
-FIRE arrows

other arrows needed???

Nyan arrows?
thanks doge
 

User avatar
Topywo
Member
 
Posts: 1718
Joined: Fri May 18, 2012 20:27

by Topywo » Mon Jul 30, 2012 14:27

When I shot myself I got kicked out of the game. I used the latest minetest version 0.4.2 (rc1)
 

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

by PilzAdam » Thu Aug 16, 2012 10:40

If you are still supporting this mod you can use the strings of my farming mod: http://minetest.net/forum/viewtopic.php?id=2787
 

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

by PilzAdam » Fri Aug 17, 2012 14:52

 

pompom
New member
 
Posts: 2
Joined: Thu Oct 18, 2012 17:35

by pompom » Sat Oct 20, 2012 13:56

+∞
 

User avatar
GloopMaster
Member
 
Posts: 213
Joined: Wed Aug 01, 2012 18:03

by GloopMaster » Sun Oct 21, 2012 17:06

Please post on the correct topic. This version is out of date.
Meow.

That is all.
 

H6nry
New member
 
Posts: 3
Joined: Wed Nov 07, 2012 14:13

by H6nry » Wed Nov 07, 2012 17:01

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.
Last edited by H6nry on Thu Nov 08, 2012 12:57, edited 1 time in total.
 

User avatar
programmingchicken
Member
 
Posts: 537
Joined: Sat Apr 18, 2015 02:20
GitHub: ProgrammingChicken
IRC: gamer chicken
In-game: gamerdude

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

by programmingchicken » Mon May 18, 2015 22:56

The crafting recipe images apparently aren't being hosted anymore.
I'm bold. I'm sarcastic. I'm PChicken.
 

PreviousNext

Return to Old Mods

Who is online

Users browsing this forum: No registered users and 4 guests

cron