mirror of
https://bitbucket.org/minetest_gamers/x_enchanting.git
synced 2025-06-29 06:11:20 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
f4ed507897 | |||
01703cb0a3 | |||
c5c53b63ee | |||
4a0b45f472 |
@ -178,6 +178,7 @@ end
|
|||||||
## Optional Dependencies
|
## Optional Dependencies
|
||||||
|
|
||||||
- xdecor (adjusts conflicting recipe)
|
- xdecor (adjusts conflicting recipe)
|
||||||
|
- item_drop (make sure fortune will execute before item_drop mod overrides `handle_node_drops`)
|
||||||
|
|
||||||
## License:
|
## License:
|
||||||
|
|
||||||
|
6
api.lua
6
api.lua
@ -309,9 +309,9 @@ end
|
|||||||
---Find element v of t satisfying f(v)
|
---Find element v of t satisfying f(v)
|
||||||
local function tableFind(t, f)
|
local function tableFind(t, f)
|
||||||
for _, v in ipairs(t) do
|
for _, v in ipairs(t) do
|
||||||
if f(v) then
|
if f(v) then
|
||||||
return v
|
return v
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
2
mod.conf
2
mod.conf
@ -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
|
optional_depends = xdecor, item_drop
|
||||||
supported_games = minetest_game
|
supported_games = minetest_game
|
||||||
min_minetest_version = 5.4
|
min_minetest_version = 5.4
|
||||||
|
@ -31,6 +31,7 @@ minetest.register_node('x_enchanting:table', {
|
|||||||
drawtype = 'mesh',
|
drawtype = 'mesh',
|
||||||
mesh = 'x_enchanting_table.obj',
|
mesh = 'x_enchanting_table.obj',
|
||||||
tiles = { 'x_enchanting_table.png' },
|
tiles = { 'x_enchanting_table.png' },
|
||||||
|
use_texture_alpha = 'clip',
|
||||||
paramtype = 'light',
|
paramtype = 'light',
|
||||||
paramtype2 = 'facedir',
|
paramtype2 = 'facedir',
|
||||||
walkable = true,
|
walkable = true,
|
||||||
|
Reference in New Issue
Block a user