mirror of
https://github.com/minetest-mods/unifiedbricks.git
synced 2024-11-22 15:33:47 +01:00
unified dyes uses on_use now, instead of on_rightclick
This commit is contained in:
parent
cc67751245
commit
ea4135c253
24
init.lua
24
init.lua
@ -104,21 +104,15 @@ minetest.register_node("unifiedbricks:brickblock", {
|
|||||||
paramtype2 = "color",
|
paramtype2 = "color",
|
||||||
palette = "unifieddyes_palette.png",
|
palette = "unifieddyes_palette.png",
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {cracky=3, not_in_creative_inventory=1},
|
groups = {cracky=3, not_in_creative_inventory=1, ud_param2_colorable = 1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
after_dig_node = unifieddyes.after_dig_node,
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
|
||||||
unifieddyes.on_rightclick(pos, node, clicker,
|
|
||||||
itemstack, pointed_thing, "unifiedbricks:brickblock")
|
|
||||||
end,
|
|
||||||
drop = "default:brick"
|
drop = "default:brick"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.override_item("default:brick", {
|
minetest.override_item("default:brick", {
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
ud_replacement_node = "unifiedbricks:brickblock",
|
||||||
unifieddyes.on_rightclick(pos, node, clicker,
|
groups = {cracky = 3, ud_param2_colorable = 1}
|
||||||
itemstack, pointed_thing, "unifiedbricks:brickblock")
|
|
||||||
end
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("unifiedbricks:clayblock", {
|
minetest.register_node("unifiedbricks:clayblock", {
|
||||||
@ -130,23 +124,17 @@ minetest.register_node("unifiedbricks:clayblock", {
|
|||||||
paramtype2 = "color",
|
paramtype2 = "color",
|
||||||
palette = "unifieddyes_palette.png",
|
palette = "unifieddyes_palette.png",
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {crumbly=3, not_in_creative_inventory=1},
|
groups = {crumbly=3, not_in_creative_inventory=1, ud_param2_colorable = 1},
|
||||||
sounds = default.node_sound_dirt_defaults({
|
sounds = default.node_sound_dirt_defaults({
|
||||||
footstep = "",
|
footstep = "",
|
||||||
}),
|
}),
|
||||||
after_dig_node = unifieddyes.after_dig_node,
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
|
||||||
unifieddyes.on_rightclick(pos, node, clicker,
|
|
||||||
itemstack, pointed_thing, "unifiedbricks:clayblock")
|
|
||||||
end,
|
|
||||||
drop = "default:clay"
|
drop = "default:clay"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.override_item("default:clay", {
|
minetest.override_item("default:clay", {
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
ud_replacement_node = "unifiedbricks:clayblock",
|
||||||
unifieddyes.on_rightclick(pos, node, clicker,
|
groups = {crumbly = 3, ud_param2_colorable = 1}
|
||||||
itemstack, pointed_thing, "unifiedbricks:clayblock")
|
|
||||||
end
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user