Far Bows [farbows] + Raycast Bows API [rcbows] (1.15-2.2)
Far Bows [farbows] + Raycast Bows API [rcbows] (1.15-2.2)
Raycast Bows API
- It is an API to easy create bows, forked from the SmallJoker's 'Farbows mod' Mod.
- Bows use the new 5.0 Raycast function.
- Two functions to register both bows and arrows.
-- rcbows.register_arrow(name, def)
-- rcbows.register_bow(name, def)
- You can kill players and mobs.
- It supports translations.
- Sounds by default or defined.
- Optional:
-- Trail effect.
-- Charge time.
-- Replace node effect.
-- Explosion and Water effects.
-- Viewfinder.
Depends
None
Content Rating
License
GPLv3
Source Code and README for developers
Source Code
Download Raycast Bows
Manual
- Charge the bow with right click (if the arrow present in the inventory).
- Throw the arrow with left-click.
Far Bows (Example Mod)
It adds Wooden, Mese and Flaming bows. And a Crossbow.
Depends
rcbows, default, farming, fire, tnt
Source Code
Download Far Bows
Last edited by runs on Tue Dec 22, 2020 15:53, edited 36 times in total.
Re: Raycast Bows [rcbows] + Farbows [farbows]
v1.1
- Now you can define the damage for a arrow.
- Now you can define the damage for a arrow.
Re: Farbows [farbows] + Raycast Bows API [rcbows]
- Now available on ContentDB (Awating for approval).
Re: Farbows [farbows] + Raycast Bows API [rcbows]
Yes !
Now you can hunt eagles :D
And safely hunt sharks, too :)
But I will make the eagles fight back when you shoot them with arrows x)
Now you can hunt eagles :D
And safely hunt sharks, too :)
But I will make the eagles fight back when you shoot them with arrows x)
Re: Farbows [farbows] + Raycast Bows API [rcbows]
I will add fire arrows to kill shaks maybe :-DGundul wrote:Yes !
Now you can hunt eagles :D
And safely hunt sharks, too :)
But I will make the eagles fight back when you shoot them with arrows x)
Re: Far Bows [farbows] + Raycast Bows API [rcbows]
v1.2
- Raycast Bows API: Now sounds by default. Also you can mute them or define your own.
- Far Bows: Sounds enabled. Changed decription form 'bow' to 'far bow'.
- Raycast Bows API: Now sounds by default. Also you can mute them or define your own.
- Far Bows: Sounds enabled. Changed decription form 'bow' to 'far bow'.
Re: Far Bows [farbows] + Raycast Bows API [rcbows] (1.2)
v1.3
- Raycast Bows API: Added "effects" definition: 'replace_node' and "trail_particle".
- Far Bows: Added "Far Flaming Bow" & "Fire Arrow"
- Raycast Bows API: Added "effects" definition: 'replace_node' and "trail_particle".
- Far Bows: Added "Far Flaming Bow" & "Fire Arrow"
-
- Member
- Posts: 407
- Joined: Sat Dec 29, 2018 19:21
- GitHub: KaylebJay
- IRC: KaylebJay
- In-game: CalebJ
- Location: Tunnelers' Abyss
Re: Far Bows [farbows] + Raycast Bows API [rcbows] (1.3)
This looks great! Thanks for another mod, runs :)
Re: Far Bows [farbows] + Raycast Bows API [rcbows] (1.3)
It really works very good so far. Only I think arrows should not work underwater, or at least behave differently :)
Maybe something like a harpoon or arrows not shooting as far as in air.
Maybe something like a harpoon or arrows not shooting as far as in air.
Re: Far Bows [farbows] + Raycast Bows API [rcbows] (1.4)
v1.4 (rcbows & farbows)
- Now arrows drag on liquids.
- Fix: Missing arrow texture.
- Now arrows drag on liquids.
- Fix: Missing arrow texture.
Re: Far Bows [farbows] + Raycast Bows API [rcbows] (1.5)
v1.5 (rcbows & farbows)
- Now you can define multiple arrows for bows (table). The Flaming Bow can throw normal arrows.
- Splash effect when an arrow enter into the surface of the water and trail effect.
- Now you can define multiple arrows for bows (table). The Flaming Bow can throw normal arrows.
- Splash effect when an arrow enter into the surface of the water and trail effect.
-
- Member
- Posts: 999
- Joined: Sat Aug 19, 2017 21:49
- GitHub: Chemguy99
- In-game: Chem Nyx
- Location: My Basement's Attic
Re: Far Bows [farbows] + Raycast Bows API [rcbows] (1.5)
Plz Crossbows and arbalests too.
What is SCP-055?
Re: Far Bows [farbows] + Raycast Bows API [rcbows] (1.6)
v1.6
- rcbows: Now you can define a "charge_time" for bows.
- farbows: Now arrows do not load inmediately.
- farbows: Added a "Crossbow".
- rcbows: Now you can define a "charge_time" for bows.
- farbows: Now arrows do not load inmediately.
- farbows: Added a "Crossbow".
Re: Far Bows [farbows] + Raycast Bows API [rcbows] (1.6)
v1.7
- rcbows: Fixed wrong inventory replacement when the "charge_time" is big and the player change/delete the bow item.
- rcbows: Fixed wrong inventory replacement when the "charge_time" is big and the player change/delete the bow item.
Re: Far Bows [farbows] + Raycast Bows API [rcbows] (1.8)
v1.8 (rcbows & farbows)
- Added a "base_texture" definition for a better visualization of the bows.
- Added a "base_texture" definition for a better visualization of the bows.
Re: Far Bows [farbows] + Raycast Bows API [rcbows] (1.8)
Well, the mod is finished (bugs aside). I will request to move to finished mods.
Re: Far Bows [farbows] + Raycast Bows API [rcbows] (1.8)
Bug:
shooting an arrow can be heard globaly. :)
But recharging can not.
shooting an arrow can be heard globaly. :)
But recharging can not.
Re: Far Bows [farbows] + Raycast Bows API [rcbows] (1.8)
1.8.1
- (rcbows) Fixed: Shooting sound globally.
- (rcbows) Fixed: Shooting sound globally.
Re: Far Bows [farbows] + Raycast Bows API [rcbows] (1.8.1)
Thanks for fixing sounds, I had no opportunity yet to test it on my servers because a lock of players
to test it with x)
I found two other things:
the other thing is that you can register effects with arrows.
Maybe I am wrong but there are no checks for owner and protection ?
line 185 init.lua in rcbows
Someone could grief protected buildings by shooting arrows at it.
[Edit]
if you want to replace the hit node it should be
I guess. :)
to test it with x)
I found two other things:
Code: Select all
Undeclared global variable "gain" accessed at /home/mars/.minetest/mods/rcbows/init.lua:67
2020-04-10 11:34:06: WARNING[Server]: Undeclared global variable "max_hear_distance" accessed at .minetest/mods/rcbows/init.lua:67
2020-04-10 11:34:26: WARNING[Server]: Undeclared global variable "gain" accessed at .minetest/mods/rcbows/init.lua:103
2020-04-10 11:34:26: WARNING[Server]: Undeclared global variable "max_hear_distance" accessed at .minetest/mods/rcbows/init.lua:103
Maybe I am wrong but there are no checks for owner and protection ?
line 185 init.lua in rcbows
Code: Select all
if def.effects and def.effects.replace_node then
minetest.set_node(self.old_pos, {name = def.effects.replace_node})
end
[Edit]
if you want to replace the hit node it should be
Code: Select all
if def.effects and def.effects.replace_node then
minetest.set_node(pos, {name = def.effects.replace_node})
end
Re: Far Bows [farbows] + Raycast Bows API [rcbows] (1.8.1)
v1.8.2 (rcbows)
- Fixed some global variables.
- Check for protected nodes in case of a replace_node effect.
- Changed the pos of the hit node.
- Fixed some global variables.
- Check for protected nodes in case of a replace_node effect.
- Changed the pos of the hit node.
Re: Far Bows [farbows] + Raycast Bows API [rcbows] (1.8.2)
Hmm, I've realized that this API could be applied to make guns as pistols and bullets. But first I have to define a drop = false or nil or {}.
Also I will try to add a new effect: snipper (zoom with viewfinder texture), if possible. And later a crossbow with snipper. And more later a Hunter Riffle with snipper too (a separated mod) to kill my Petz :-D
Also I will try to add a new effect: snipper (zoom with viewfinder texture), if possible. And later a crossbow with snipper. And more later a Hunter Riffle with snipper too (a separated mod) to kill my Petz :-D
Re: Far Bows [farbows] + Raycast Bows API [rcbows] (1.8.1)
Thanks now it works very well. If you have enable_fire = true and shoot a fire arrow in treesruns wrote:v1.8.2 (rcbows)
- Fixed some global variables.
- Check for protected nodes in case of a replace_node effect.
- Changed the pos of the hit node.
you have amazing effects xD
- Krock
- Developer
- Posts: 4649
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
Re: Far Bows [farbows] + Raycast Bows API [rcbows] (1.8.2)
Wow, this is unexpected. Thank you for re-using my work. farbows is a 0.5.0-dev feature demonstration and development testing mod, but it looks like it offers enough potential to you for extending it to an enjoyable unique mod.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
Re: Far Bows [farbows] + Raycast Bows API [rcbows] (1.8.2)
Hmm,it would be nice to add poisonous and explosive arrows.
NfAPhpmGaVphBjK8NIr9Mit5xNW2emD2
Who is online
Users browsing this forum: No registered users and 24 guests