Add enchanting mod support

This commit is contained in:
bri cassa 2025-04-19 17:13:34 +02:00
parent 0d589e69b3
commit 673922371c
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
name = x_enchanting name = x_enchanting
description = Adds Enchanting Mechanics and API. description = Adds Enchanting Mechanics and API.
depends = depends =
optional_depends = xdecor, item_drop, stairs optional_depends = xdecor, item_drop, stairs, enchanting
supported_games = minetest_game supported_games = minetest_game
min_minetest_version = 5.4 min_minetest_version = 5.4

View File

@ -633,12 +633,12 @@ core.register_entity('x_enchanting:table_scroll', {
-- Recipe -- Recipe
--- ---
if core.get_modpath('xdecor') then if core.get_modpath('xdecor') or core.get_modpath('enchanting') then
core.register_craft({ core.register_craft({
output = 'x_enchanting:table', output = 'x_enchanting:table',
recipe = { recipe = {
{ 'default:book', '', '' }, { 'default:book', '', '' },
{ 'default:diamond', 'default:obsidian', 'default:diamond' }, { 'default:diamond', 'xdecor:enchantment_table', 'default:diamond' },
{ 'default:obsidian', 'default:obsidian', 'default:obsidian' } { 'default:obsidian', 'default:obsidian', 'default:obsidian' }
} }
}) })