1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 14:16:06 +02:00

Fix [buckets] w/ acid or sand, make [death_message] work w/ aliases

This commit is contained in:
Dorian Wouters
2016-08-21 12:32:06 +02:00
parent 2841c76d60
commit 32ae8aca19
8 changed files with 53 additions and 43 deletions

View File

@ -33,3 +33,8 @@ do -- moreores
minetest.register_alias('silver_block', modname .. ':silverblock')
minetest.register_alias('tin_block', modname .. ':tinblock')
end
minetest.register_alias('bucket_acid', modname .. ':bucket_acid')
minetest.register_alias('bucket:bucket_acid', modname .. ':bucket_acid')
minetest.register_alias('bucket_sand', modname .. ':bucket_sand')
minetest.register_alias('bucket:bucket_sand', modname .. ':bucket_sand')

View File

@ -1 +1,2 @@
default
bucket

View File

@ -11,3 +11,4 @@ dofile(modpath .. '/biomes.lua')
dofile(modpath .. '/mapgen.lua')
dofile(modpath .. '/nodes.lua')
dofile(modpath .. '/trees.lua')
dofile(modpath .. '/registers.lua')

View File

@ -0,0 +1,28 @@
local modname = minetest.get_current_modname()
bucket.register_liquid(
modname .. ':acid_source',
modname .. ':acid_flowing',
modname .. ':bucket_acid',
'bucket_acid.png',
"Acid Bucket",
{not_in_creative_inventory = 1}
)
bucket.register_liquid(
modname .. ':sand_source',
modname .. ':sand_flowing',
modname .. ':bucket_sand',
'bucket_sand.png',
"Sand Bucket",
{not_in_creative_inventory = 1}
)
minetest.register_craft({
output = modname .. ':bucket_sand',
recipe = {
{'group:sand'},
{'group:sand'},
{'bucket:bucket_water'}
},
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 B