summaryrefslogtreecommitdiff
path: root/init.lua
blob: e502593f720830fc128758f22ac4d50cecc18076 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
core.register_node("solidcolor:block", {
	description = "Solid Color Block",
	tiles = {"solidcolor_white.png"},
	is_ground_content = false,
	groups = {dig_immediate=2,ud_param2_colorable=1},
	sounds = (core.global_exists("default") and default.node_sound_stone_defaults()),
	paramtype2 = "color",
	palette = "unifieddyes_palette_extended.png",
	on_construct = unifieddyes.on_construct,
	on_dig = not unifieddyes.preserve_metadata and unifieddyes.on_dig or nil,
	preserve_metadata = unifieddyes.preserve_metadata,
})

core.register_craft( {
	output = "solidcolor:block",
	recipe = {
		{ "dye:white", "dye:white"},
		{ "dye:white", "dye:white"},
	},
})

unifieddyes.register_color_craft({
	output = "solidcolor:block",
	palette = "extended",
	type = "shapeless",
	neutral_node = "solidcolor:block",
	recipe = {
		"NEUTRAL_NODE",
		"MAIN_DYE"
	}
})