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:
@ -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')
|
||||
|
@ -1 +1,2 @@
|
||||
default
|
||||
bucket
|
||||
|
@ -11,3 +11,4 @@ dofile(modpath .. '/biomes.lua')
|
||||
dofile(modpath .. '/mapgen.lua')
|
||||
dofile(modpath .. '/nodes.lua')
|
||||
dofile(modpath .. '/trees.lua')
|
||||
dofile(modpath .. '/registers.lua')
|
||||
|
28
mods/mff/mff_classic/registers.lua
Normal file
28
mods/mff/mff_classic/registers.lua
Normal 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'}
|
||||
},
|
||||
})
|
BIN
mods/mff/mff_classic/textures/bucket_acid.png
Executable file
BIN
mods/mff/mff_classic/textures/bucket_acid.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 216 B |
BIN
mods/mff/mff_classic/textures/bucket_sand.png
Executable file
BIN
mods/mff/mff_classic/textures/bucket_sand.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 250 B |
Reference in New Issue
Block a user