PilzAdam wrote:I finally stoped being lazy for 1 minute and upgraded to the new damage system; everything should work now.
brunob.santos wrote:If I want to disable the mod in my server.
This can damage the server? Or let it slow?
I think of disable and enable the mod constantly. (for any purpose)
What do you say to that?
PilzAdam wrote:brunob.santos wrote:If I want to disable the mod in my server.
This can damage the server? Or let it slow?
I think of disable and enable the mod constantly. (for any purpose)
What do you say to that?
I dont know what you mean by "damage the server". If you remove it then people get unkown items in their inventories instead of the bows and arrows, and arrows in the world will show up as unknown objects. When you re-enable the mod, then the unknown objects and items should turn back into what they were originally.
brunob.santos wrote:PilzAdam wrote:brunob.santos wrote:If I want to disable the mod in my server.
This can damage the server? Or let it slow?
I think of disable and enable the mod constantly. (for any purpose)
What do you say to that?
I dont know what you mean by "damage the server". If you remove it then people get unkown items in their inventories instead of the bows and arrows, and arrows in the world will show up as unknown objects. When you re-enable the mod, then the unknown objects and items should turn back into what they were originally.
alright! but anyway.
If I just turn off. the server is slow?
-- stick
{-0.5,0.0,0.0, 0.5,0.06250,0.06250},
-- point
{-0.43750,0.06250,-0.0, -0.31250,0.12500,0.06250},
{-0.43750,-0.06250,0.0, -0.31250,0.0,0.06250},
-- feather up
{0.18750,0.06250,0.0, 0.43750,0.12500,0.06250},
{0.25000,0.12500,0.0, 0.43750,0.18750,0.06250},
-- feather down
{0.18750,-0.06250,0.0, 0.43750,0.0,0.06250},
{0.25000,-0.12500,0.0, 0.43750,-0.06250,0.06250},
-- feather right
{0.18750,0.0,-0.0625, 0.43750,0.06250,0.0},
{0.25000,0.0,-0.12500, 0.43750,0.06250,-0.06250},
-- feather left
{0.18750,0.0,0.06250, 0.43750,0.06250,0.12500},
{0.25000,0.0,0.12500, 0.43750,0.06250,0.18750},
Melkor wrote:I tried making my own arrows for this mod, using my very very old WCC mod as a container for experiments, replacing the weighted cube for this:
http://i288.photobucket.com/albums/ll190/melkor_666/MineTest/screenshot_18319620_zps71193162.png
but that didn't work in the Throwing mod:
http://i288.photobucket.com/albums/ll190/melkor_666/MineTest/screenshot_19421655_zpscaa47239.png
Now they are darts, they are almost invisible :)
here is the arrow if anyone is interested: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
-- stick
{-0.5,0.0,0.0, 0.5,0.06250,0.06250},
-- point
{-0.43750,0.06250,-0.0, -0.31250,0.12500,0.06250},
{-0.43750,-0.06250,0.0, -0.31250,0.0,0.06250},
-- feather up
{0.18750,0.06250,0.0, 0.43750,0.12500,0.06250},
{0.25000,0.12500,0.0, 0.43750,0.18750,0.06250},
-- feather down
{0.18750,-0.06250,0.0, 0.43750,0.0,0.06250},
{0.25000,-0.12500,0.0, 0.43750,-0.06250,0.06250},
-- feather right
{0.18750,0.0,-0.0625, 0.43750,0.06250,0.0},
{0.25000,0.0,-0.12500, 0.43750,0.06250,-0.06250},
-- feather left
{0.18750,0.0,0.06250, 0.43750,0.06250,0.12500},
{0.25000,0.0,0.12500, 0.43750,0.06250,0.18750},
minetest.register_craft({
output = 'throwing:bow_wood',
recipe = {
{'farming:cotton', 'default:wood', ''},
{'farming:cotton', '', 'default:wood'},
{'farming:cotton', 'default:wood', ''},
}
})
minetest.register_craft({
output = 'throwing:bow_stone',
recipe = {
{'farming:cotton', 'default:cobble', ''},
{'farming:cotton', '', 'default:cobble'},
{'farming:cotton', 'default:cobble', ''},
}
})
minetest.register_craft({
output = 'throwing:bow_steel',
recipe = {
{'farming:cotton', 'default:steel_ingot', ''},
{'farming:cotton', '', 'default:steel_ingot'},
{'farming:cotton', 'default:steel_ingot', ''},
}
})
LodeRunner wrote:Folks,
I've been trying to learn lua and minetest by reading the code for a bunch of mods. One of the items that I'm most interested in is the bow/arrow model, as I'd like to eventually create additional mobs who use bows also, sort of like the skeletons from MC but not exactly. Therefore, I had some questions:
1) Just as a learning experience, I tried to adapt the TNT arrow from the original throwing mod to this one. However, it uses the iron-TNT item from the nuke mod which is not what I prefer. I'd like to stick with the existing TNT mod that is part of the base install. However, when looking at the code, I don't think that I can detonate the default TNT by just hitting it or having it hit something else--I don't think that it's coded for that. Being new to lua, I wasn't sure if the code for how detonation happens should be taken from tnt:tnt or from the code for the arrow itself.
2) Other than including a reference to tnt:tnt in the crafting recipe and the depends.txt, would I need to reference the tnt:tnt lua code in any way? Does lua use cross-referencing like this, or does all the code have to reside in the lua file for the arrow?
3) Does this item (a TNT arrow) already exist for this version of the throwing mod?
4) I had also thought about creating an arrow that would attach a "torch" to wherever the arrow hits/lands, thereby allowing to get torches to otherwise inaccessible locations. Does a "torch arrow" already exist?
5) Would it make sense to develop an api.lua file that would hold common code about arrows? It seems that this mod has lots of potential, not only for players but new mobs as well. Not knowing enough to know better, this seemed like a legit question.
Thanks for any help!
obj:punch(self.object, 1.0, {
full_punch_interval=1.0,
damage_groups={fleshy=damage},
}, nil)
Users browsing this forum: No registered users and 15 guests