working colored cards
commit
534a7da5e8
|
@ -0,0 +1,17 @@
|
||||||
|
|
||||||
|
globals = {
|
||||||
|
"access_cards"
|
||||||
|
}
|
||||||
|
|
||||||
|
read_globals = {
|
||||||
|
-- Stdlib
|
||||||
|
string = {fields = {"split"}},
|
||||||
|
table = {fields = {"copy", "getn"}},
|
||||||
|
|
||||||
|
-- Minetest
|
||||||
|
"minetest",
|
||||||
|
"vector", "ItemStack",
|
||||||
|
"dump", "VoxelArea",
|
||||||
|
|
||||||
|
"unifieddyes"
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
language: generic
|
||||||
|
sudo: false
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- luarocks
|
||||||
|
before_install:
|
||||||
|
- luarocks install --local luacheck
|
||||||
|
script:
|
||||||
|
- $HOME/.luarocks/bin/luacheck --no-color .
|
||||||
|
notifications:
|
||||||
|
email: false
|
|
@ -0,0 +1,22 @@
|
||||||
|
|
||||||
|
minetest.register_craftitem("access_cards:access_card_1", {
|
||||||
|
description = "Access card",
|
||||||
|
inventory_image = "access_card_1.png"
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("access_cards:access_card_1_colored", {
|
||||||
|
description = "Access card",
|
||||||
|
groups = {ud_param2_colorable = 1, not_in_creative_inventory = 1},
|
||||||
|
inventory_image = "access_card_1.png",
|
||||||
|
palette = "unifieddyes_palette_extended.png",
|
||||||
|
paramtype2 = "color",
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
unifieddyes.register_color_craft({
|
||||||
|
output = "access_cards:access_card_1_colored",
|
||||||
|
palette = "extended",
|
||||||
|
neutral_node = "access_cards:access_card_1",
|
||||||
|
recipe = { "NEUTRAL_NODE", "MAIN_DYE" },
|
||||||
|
type = "shapeless"
|
||||||
|
})
|
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
Loading…
Reference in New Issue