Move bow/arrow logic into new mod mcl_bows
This commit is contained in:
parent
e55a1a6211
commit
4be5f89829
27 changed files with 391 additions and 388 deletions
|
@ -34,7 +34,7 @@ minetest.register_node("mobs_mc:arrow_box", {
|
|||
{7.5/17, -2.5/17, -2.5/17, 8.5/17, -3.5/17, -3.5/17},
|
||||
}
|
||||
},
|
||||
tiles = {"mcl_throwing_arrow.png^[transformFX", "mcl_throwing_arrow.png^[transformFX", "mcl_throwing_arrow_back.png", "mcl_throwing_arrow_front.png", "mcl_throwing_arrow.png", "mcl_throwing_arrow.png^[transformFX"},
|
||||
tiles = {"mcl_bows_arrow.png^[transformFX", "mcl_bows_arrow.png^[transformFX", "mcl_bows_arrow_back.png", "mcl_bows_arrow_front.png", "mcl_bows_arrow.png", "mcl_bows_arrow.png^[transformFX"},
|
||||
groups = {not_in_creative_inventory=1},
|
||||
})
|
||||
|
||||
|
@ -135,7 +135,7 @@ if c("arrow") then
|
|||
description = S("Arrow"),
|
||||
_doc_items_longdesc = S("Arrows are ammunition for bows."),
|
||||
_doc_items_usagehelp = S("To use arrows as ammunition for a bow, put them in the inventory slot following the bow. Slots are counted left to right, top to bottom."),
|
||||
inventory_image = "mcl_throwing_arrow_inv.png",
|
||||
inventory_image = "mcl_bows_arrow_inv.png",
|
||||
})
|
||||
end
|
||||
|
||||
|
@ -155,7 +155,7 @@ if c("bow") then
|
|||
description = S("Bow"),
|
||||
_doc_items_longdesc = S("Bows are ranged weapons to shoot arrows at your foes."),
|
||||
_doc_items_usagehelp = S("To use the bow, you first need to have at least one arrow in slot following the bow. Leftclick to shoot. Each hit deals 3 damage."),
|
||||
inventory_image = "mcl_throwing_bow.png",
|
||||
inventory_image = "mcl_bows_bow.png",
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
if throwing_shoot_arrow(itemstack, user, pointed_thing) then
|
||||
if not minetest.settings:get_bool("creative_mode") then
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
default?
|
||||
mobs
|
||||
tnt?
|
||||
mcl_bows?
|
||||
mcl_throwing?
|
||||
throwing?
|
||||
fishing?
|
||||
bones?
|
||||
mesecons_materials?
|
||||
|
|
|
@ -21,7 +21,7 @@ mobs:register_mob("mobs_mc:illusioner", {
|
|||
textures = { {
|
||||
"mobs_mc_illusionist.png",
|
||||
"mobs_mc_illusionist.png", --hat
|
||||
"mcl_throwing_bow.png",
|
||||
"mcl_bows_bow.png",
|
||||
}, },
|
||||
visual_size = {x=3, y=3},
|
||||
walk_velocity = 0.6,
|
||||
|
|
|
@ -33,8 +33,8 @@ mobs_mc.override.items = {
|
|||
snowball = "mcl_throwing:snowball",
|
||||
top_snow = "mcl_core:snow",
|
||||
snow_block = "mcl_core:snowblock",
|
||||
arrow = "mcl_throwing:arrow",
|
||||
bow = "mcl_throwing:bow",
|
||||
arrow = "mcl_bows:arrow",
|
||||
bow = "mcl_bows:bow",
|
||||
head_zombie = "mcl_heads:zombie",
|
||||
head_creeper = "mcl_heads:creeper",
|
||||
head_skeleton = "mcl_heads:skeleton",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue