-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvessels.lua
More file actions
62 lines (54 loc) · 2.17 KB
/
Copy pathvessels.lua
File metadata and controls
62 lines (54 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
--[[
X Farming. Extends Luanti farming mod with new plants, crops and ice fishing.
Copyright (C) 2025 SaKeL
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to juraj.vajda@gmail.com
--]]
-- Authors of source code
-- ----------------------
-- Originally by Vanessa Ezekowitz (LGPLv2.1+)
-- Modified by Perttu Ahola <celeron55@gmail.com> (LGPLv2.1+)
-- Various Luanti developers and contributors (LGPLv2.1+)
local S = core.get_translator(core.get_current_modname())
if not core.get_modpath("vessels") then
core.register_node('x_farming:glass_bottle', {
description = S('Empty Glass Bottle'),
drawtype = 'plantlike',
tiles = { 'x_farming_vessels_glass_bottle.png' },
inventory_image = 'x_farming_vessels_glass_bottle.png',
wield_image = 'x_farming_vessels_glass_bottle.png',
paramtype = 'light',
is_ground_content = false,
walkable = false,
selection_box = {
type = 'fixed',
fixed = { -0.25, -0.5, -0.25, 0.25, 0.3, 0.25 }
},
groups = { vessel = 1, dig_immediate = 3, attached_node = 1 },
sounds = x_farming.node_sound_thin_glass_defaults(),
})
end
core.register_craft({
output = 'x_farming:glass_bottle 10',
recipe = {
{ 'default:glass', '', 'default:glass' },
{ 'default:glass', '', 'default:glass' },
{ '', 'default:glass', '' }
}
})
core.register_craft({
output = 'x_farming:glass_bottle 10',
recipe = {
{ 'group:glass', '', 'group:glass' },
{ 'group:glass', '', 'group:glass' },
{ '', 'group:glass', '' }
}
})