add copper nuggets and make lantern craftable #32

Merged
Ghost merged 4 commits from add-copper-lantern-recipe into master 2023-03-22 03:05:55 +01:00
Member
No description provided.
SmokeyDope added 4 commits 2023-03-19 22:05:56 +01:00
Ghost reviewed 2023-03-19 23:53:18 +01:00
@ -229,7 +229,7 @@ minetest.register_tool("mcl_copper_stuff:shears_copper", {
})
-- Copper Lantern
mcl_lanterns.register_lantern("mcl_copper_stuff:copper_lantern", {
First-time contributor

Why did you change this?

Why did you change this?
Author
Member

"mcl_copper_stuff:" had to be removed in order for the crafting recipe to work, I believe this is because the function mcl_lanterns.register_lantern is used instead of the regular minetest.register_node which classifies the copper lantern as part of the mcl_lantern set.

Notice the crafting recipe for the lantern:

-- copper lantern recipe
minetest.register_craft({
	output = "mcl_lanterns:copper_lantern_floor",
	recipe = {
		{"mcl_copper_stuff:copper_nugget", "mcl_copper_stuff:copper_nugget", "mcl_copper_stuff:copper_nugget"},
		{"mcl_copper_stuff:copper_nugget", "mcl_torches:torch"             , "mcl_copper_stuff:copper_nugget"},
		{"mcl_copper_stuff:copper_nugget", "mcl_copper_stuff:copper_nugget", "mcl_copper_stuff:copper_nugget"},
	},
})
"mcl_copper_stuff:" had to be removed in order for the crafting recipe to work, I believe this is because the function mcl_lanterns.register_lantern is used instead of the regular minetest.register_node which classifies the copper lantern as part of the mcl_lantern set. Notice the crafting recipe for the lantern: ``` -- copper lantern recipe minetest.register_craft({ output = "mcl_lanterns:copper_lantern_floor", recipe = { {"mcl_copper_stuff:copper_nugget", "mcl_copper_stuff:copper_nugget", "mcl_copper_stuff:copper_nugget"}, {"mcl_copper_stuff:copper_nugget", "mcl_torches:torch" , "mcl_copper_stuff:copper_nugget"}, {"mcl_copper_stuff:copper_nugget", "mcl_copper_stuff:copper_nugget", "mcl_copper_stuff:copper_nugget"}, }, }) ```
Ghost marked this conversation as resolved
Ghost approved these changes 2023-03-22 03:05:19 +01:00
Ghost left a comment
First-time contributor

Works, looks good to me.

Works, looks good to me.
Ghost merged commit 7547c927d0 into master 2023-03-22 03:05:55 +01:00
Ghost deleted branch add-copper-lantern-recipe 2023-03-22 03:05:57 +01:00
Sign in to join this conversation.
No description provided.