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
description = Adds Enchanting Mechanics and API.
depends =
optional_depends = xdecor, item_drop, stairs
optional_depends = xdecor, item_drop, stairs, enchanting
supported_games = minetest_game
min_minetest_version = 5.4

View File

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