updated arrow color scheme.

This commit is contained in:
Brandon 2020-07-24 19:22:57 -04:00
parent 8c5943b34c
commit a53a98fff6

View File

@ -18,12 +18,12 @@ local function arrow_image(colorstring, opacity)
if not opacity then if not opacity then
opacity = 127 opacity = 127
end end
return {"mcl_bows_arrow.png^[transformFX", return {"mcl_bows_arrow.png^[transformFX^[colorize:"..colorstring..":"..tostring(opacity),
"mcl_bows_arrow.png^[transformFX", "mcl_bows_arrow.png^[transformFX^[colorize:"..colorstring..":"..tostring(opacity),
"mcl_bows_arrow_back.png^[colorize:"..colorstring..":"..tostring(opacity), "mcl_bows_arrow_back.png^[colorize:"..colorstring..":"..tostring(opacity),
"mcl_bows_arrow_front.png^[colorize:"..colorstring..":"..tostring(opacity), "mcl_bows_arrow_front.png^[colorize:"..colorstring..":"..tostring(opacity),
"mcl_bows_arrow.png", "mcl_bows_arrow.png^[colorize:"..colorstring..":"..tostring(opacity),
"mcl_bows_arrow.png^[transformFX"} "mcl_bows_arrow.png^[transformFX^[colorize:"..colorstring..":"..tostring(opacity)}
end end
@ -40,7 +40,7 @@ function mcl_potions.register_arrow(name, desc, color, def)
S("An arrow fired from a bow has a regular damage of 1-9. At full charge, there's a 20% chance of a critical hit dealing 10 damage instead. An arrow fired from a dispenser always deals 3 damage.").."\n".. S("An arrow fired from a bow has a regular damage of 1-9. At full charge, there's a 20% chance of a critical hit dealing 10 damage instead. An arrow fired from a dispenser always deals 3 damage.").."\n"..
S("Arrows might get stuck on solid blocks and can be retrieved again. They are also capable of pushing wooden buttons."), S("Arrows might get stuck on solid blocks and can be retrieved again. They are also capable of pushing wooden buttons."),
_doc_items_usagehelp = S("To use arrows as ammunition for a bow, just put them anywhere in your inventory, they will be used up automatically. To use arrows as ammunition for a dispenser, place them in the dispenser's inventory. To retrieve an arrow that sticks in a block, simply walk close to it."), _doc_items_usagehelp = S("To use arrows as ammunition for a bow, just put them anywhere in your inventory, they will be used up automatically. To use arrows as ammunition for a dispenser, place them in the dispenser's inventory. To retrieve an arrow that sticks in a block, simply walk close to it."),
inventory_image = "mcl_bows_arrow_inv.png^(mcl_potions_arrow_inv.png^[colorize:"..color..":127)", inventory_image = "mcl_bows_arrow_inv.png^(mcl_potions_arrow_inv.png^[colorize:"..color..":100)",
groups = { ammo=1, ammo_bow=1, brewitem=1}, groups = { ammo=1, ammo_bow=1, brewitem=1},
_on_dispense = function(itemstack, dispenserpos, droppos, dropnode, dropdir) _on_dispense = function(itemstack, dispenserpos, droppos, dropnode, dropdir)
-- Shoot arrow -- Shoot arrow
@ -79,7 +79,7 @@ function mcl_potions.register_arrow(name, desc, color, def)
{7.5/17, -2.5/17, -2.5/17, 8.5/17, -3.5/17, -3.5/17}, {7.5/17, -2.5/17, -2.5/17, 8.5/17, -3.5/17, -3.5/17},
} }
}, },
tiles = arrow_image(color), tiles = arrow_image(color, 100),
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
sunlight_propagates = true, sunlight_propagates = true,