Last night's work
This commit is contained in:
parent
a260c4a33a
commit
1708e2d461
45 changed files with 1359 additions and 1347 deletions
|
@ -34,11 +34,6 @@ To register a dyeable item or block, call the `register_dyeable` function in you
|
|||
```lua
|
||||
-- List of dyeable things
|
||||
local dyeable_blocks = {"sand", "terracotta", "marble", "cobblestone", "sandstone"}
|
||||
|
||||
-- Register base things their dyeable variants
|
||||
for _, base_block in ipairs(dyeable_blocks) do
|
||||
vox_coloring.register_dyeable("vox_worldblocks", base_block)
|
||||
end
|
||||
```
|
||||
|
||||
Parameters:
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
-- Vox Coloring System
|
||||
---------------------------------------------------------------------------
|
||||
-- Voxelis - Vox Coloring
|
||||
-- Adds dynamic dyes, registers dyeable blocks/items, and supports customization
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
-- Initialize the global table for this mod
|
||||
vox_coloring = {}
|
||||
|
||||
-- Register dyes dynamically based on vox_colors
|
||||
for color_name, color_hex in pairs(vox_colors) do
|
||||
|
@ -172,8 +178,8 @@ minetest.register_craftitem("vox_coloring:cleaning_solvent", {
|
|||
minetest.register_craft({
|
||||
output = "vox_coloring:cleaning_solvent",
|
||||
recipe = {
|
||||
{"vox_mats:soap", "bucket:water_bucket", "vox_mats:salt"},
|
||||
{"vox_mats:ash", "", ""},
|
||||
{"vox_main:soap", "bucket:water_bucket", "vox_main:salt"},
|
||||
{"vox_main:ash", "", ""},
|
||||
},
|
||||
replacements = {{"bucket:water_bucket", "bucket:bucket"}},
|
||||
})
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
name = vox_coloring
|
||||
description = Voxelis - coloring. Adds dynamic dyes, dynamically adds dyed (fill in the blanks) from mods that call upon the function, adds other things that are helpful.
|
||||
description = Voxelis - coloring. Adds dynamic dyes, dynamically adds dyed (fill in the blanks) from mods that call upon the function, adds other things that are helpful.
|
||||
depends = vox_colors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue