sorcery  Diff

Differences From Artifact [bd8d2ccd93]:

To Artifact [e7cd5fcdf6]:


22
23
24
25
26
27
28










29
30
31
32
33
34
	minetest.register_alias('sorcery:brass_ingot',brass..'_ingot')
	minetest.register_alias('sorcery:brass_block',brass..'_block')
end
if silver then
	minetest.register_alias('sorcery:silver_ingot',silver..'_ingot')
	minetest.register_alias('sorcery:silver_block',silver..'_block')
end











return {
	defp = function(name)
		return minetest.registered_items[name] or minetest.registered_aliases[name]
	end
}







>
>
>
>
>
>
>
>
>
>






22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
	minetest.register_alias('sorcery:brass_ingot',brass..'_ingot')
	minetest.register_alias('sorcery:brass_block',brass..'_block')
end
if silver then
	minetest.register_alias('sorcery:silver_ingot',silver..'_ingot')
	minetest.register_alias('sorcery:silver_block',silver..'_block')
end

if minetest.get_modpath("new_campfire") then
	minetest.register_alias('sorcery:ash', 'new_campfire:ash')
else
	minetest.register_craftitem('sorcery:ash', {
		description = 'Ash';
		inventory_image = 'sorcery_iron_powder.png^[colorize:#FFFFFF:100';
	})
	minetest.register_alias('new_campfire:ash', 'sorcery:ash')
end

return {
	defp = function(name)
		return minetest.registered_items[name] or minetest.registered_aliases[name]
	end
}