Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with MineClone (fix included) #10

Open
bztsrc opened this issue Dec 25, 2021 · 0 comments
Open

Does not work with MineClone (fix included) #10

bztsrc opened this issue Dec 25, 2021 · 0 comments

Comments

@bztsrc
Copy link

bztsrc commented Dec 25, 2021

Hi,

Great shop! My only issue is that it does not work with MineClone, so I've made a minor modification to it:

-- use proper nodes and texture for game
if minetest.get_modpath("mcl_chests") ~= nil then
	chest = "mcl_chests:chest"
	sign = "mcl_signs:wall_sign"
	torch = "mcl_torches:torch_wall"
	crystal = "mesecons:redstone"	-- using redstone instead of mese crystal
	steel = "mcl_core:iron_ingot"
	copper = "mcl_core:gold_ingot"	-- using gold instead of copper
	tile = "default_chest_top.png^[colorize:#ffffff77^mcl_core_glass_black.png"
else
	chest = "default:chest_locked"
	sign = "default:sign_wall_wood"
	torch = "default:torch"
	crystal = "default:mese_crystal_fragment"
	steel = "default:steel_ingot"
	copper = "default:copper_ingot"
	tile = "default_chest_top.png^[colorize:#ffffff77^default_obsidian_glass.png"
end

minetest.register_craft({
	output = "smartshop:shop",
	recipe = {
		{chest, chest, chest},
		{sign,  chest, sign},
		{sign,  torch, sign},
	}
})

minetest.register_craft({
	output = "smartshop:wifistorage",
	recipe = {
		{crystal, chest,  crystal},
		{crystal, chest,  crystal},
		{steel,   copper, steel},
	}
})

and in register nodes:

minetest.register_node("smartshop:shop", {
	description = "Smartshop",
	tiles = {tile},
...
minetest.register_node("smartshop:wifistorage", {
	description = "Wifi storage",
	tiles = {tile},

And of course removed depends.txt. This patch works great for both MTG and MCL2.

See also in forum.

Merry Xmas!
bzt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant