buckets now function properly, and can be placed.
This commit is contained in:
parent
7e2e466f1e
commit
cba301cdad
26
drinks.lua
26
drinks.lua
@ -8,6 +8,24 @@ for i in ipairs (drinks.drink_table) do
|
||||
-- The color of the drink is all done in code, so we don't need to have multiple images.
|
||||
|
||||
--Actual Node registration
|
||||
minetest.register_node('drinks:jbu_'..desc..'', {
|
||||
description = 'Bucket of '..craft..' Juice',
|
||||
drawtype = "plantlike",
|
||||
tiles = {'bucket.png^(drinks_bucket_contents.png^[colorize:'..color..':200)'},
|
||||
inventory_image = 'bucket.png^(drinks_bucket_contents.png^[colorize:'..color..':200)',
|
||||
wield_image = 'bucket.png^(drinks_bucket_contents.png^[colorize:'..color..':200)',
|
||||
paramtype = "light",
|
||||
juice_type = craft,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.25, -0.5, -0.25, 0.25, 0.4, 0.25}
|
||||
},
|
||||
groups = {vessel=1,dig_immediate=3,attached_node=1, drink = 1},
|
||||
sounds = default.node_sound_defaults(),
|
||||
})
|
||||
|
||||
drinks.register_item('drinks:jcu_'..desc, 'vessels:drinking_glass', {
|
||||
description = 'Cup of '..craft..' Juice',
|
||||
groups = {drink=1},
|
||||
@ -44,12 +62,4 @@ drinks.register_item('drinks:jsb_'..desc, 'vessels:steel_bottle',{
|
||||
end,
|
||||
})
|
||||
|
||||
drinks.register_item('drinks:jbu_'..desc, 'vessels:steel_bottle', {
|
||||
description = 'Bucket of '..craft..' Juice',
|
||||
groups = {drink = 1},
|
||||
juice_type = craft,
|
||||
inventory_image = 'bucket.png^(drinks_bucket_contents.png^[colorize:'..color..':200)',
|
||||
stack_max = 1,
|
||||
})
|
||||
|
||||
end
|
||||
|
26
drinks2.lua
26
drinks2.lua
@ -8,6 +8,24 @@ for i in ipairs (drinks.drink_table) do
|
||||
health = health or 1
|
||||
|
||||
--Actual Node registration
|
||||
minetest.register_node('drinks:jbu_'..desc..'', {
|
||||
description = 'Bucket of '..craft..' Juice',
|
||||
drawtype = "plantlike",
|
||||
tiles = {'bucket.png^(drinks_bucket_contents.png^[colorize:'..color..':200)'},
|
||||
inventory_image = 'bucket.png^(drinks_bucket_contents.png^[colorize:'..color..':200)',
|
||||
wield_image = 'bucket.png^(drinks_bucket_contents.png^[colorize:'..color..':200)',
|
||||
paramtype = "light",
|
||||
juice_type = craft,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.25, -0.5, -0.25, 0.25, 0.4, 0.25}
|
||||
},
|
||||
groups = {vessel=1,dig_immediate=3,attached_node=1, drink = 1},
|
||||
sounds = default.node_sound_defaults(),
|
||||
})
|
||||
|
||||
drinks.register_item( 'drinks:jcu_'..desc, 'vessels:drinking_glass', {
|
||||
description = 'Cup of '..craft..' Juice',
|
||||
juice_type = craft,
|
||||
@ -40,12 +58,4 @@ drinks.register_item( 'drinks:jsb_'..desc, 'vessels:steel_bottle', {
|
||||
end,
|
||||
})
|
||||
|
||||
drinks.register_item('drinks:jbu_'..desc, 'bucket:bucket_empty',{
|
||||
description = 'Bucket of '..craft..' Juice',
|
||||
groups = {drink=1},
|
||||
juice_type = craft,
|
||||
inventory_image = 'bucket.png^(drinks_bucket_contents.png^[colorize:'..color..':200)',
|
||||
stack_max = 1,
|
||||
})
|
||||
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user