mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
Added river water bucket and new xpanes' bar texture
- (part of the global MFF Game update)
This commit is contained in:
parent
e479a9439d
commit
663b4f003f
@ -35,8 +35,10 @@ end
|
||||
-- flowing = name of the flowing node
|
||||
-- itemname = name of the new bucket item (or nil if liquid is not takeable)
|
||||
-- inventory_image = texture of the new bucket item (ignored if itemname == nil)
|
||||
-- name = text description of the bucket item
|
||||
-- groups = (optional) groups of the bucket item, for example {water_bucket = 1}
|
||||
-- This function can be called from any mod (that depends on bucket).
|
||||
function bucket.register_liquid(source, flowing, itemname, inventory_image, name)
|
||||
function bucket.register_liquid(source, flowing, itemname, inventory_image, name, groups)
|
||||
bucket.liquids[source] = {
|
||||
source = source,
|
||||
flowing = flowing,
|
||||
@ -50,7 +52,7 @@ function bucket.register_liquid(source, flowing, itemname, inventory_image, name
|
||||
inventory_image = inventory_image,
|
||||
stack_max = 1,
|
||||
liquids_pointable = true,
|
||||
groups = {not_in_creative_inventory=1},
|
||||
groups = groups,
|
||||
on_place = function(itemstack, user, pointed_thing)
|
||||
-- Must be pointing to node
|
||||
if pointed_thing.type ~= "node" then
|
||||
@ -163,7 +165,17 @@ bucket.register_liquid(
|
||||
"default:water_flowing",
|
||||
"bucket:bucket_water",
|
||||
"bucket_water.png",
|
||||
"Water Bucket"
|
||||
"Water Bucket",
|
||||
{water_bucket = 1, not_in_creative_inventory = 1}
|
||||
)
|
||||
|
||||
bucket.register_liquid(
|
||||
"default:river_water_source",
|
||||
"default:river_water_flowing",
|
||||
"bucket:bucket_river_water",
|
||||
"bucket_river_water.png",
|
||||
"River Water Bucket",
|
||||
{water_bucket = 1, not_in_creative_inventory = 1}
|
||||
)
|
||||
|
||||
bucket.register_liquid(
|
||||
@ -179,7 +191,8 @@ bucket.register_liquid(
|
||||
"default:acid_flowing",
|
||||
"bucket:bucket_acid",
|
||||
"bucket_acid.png",
|
||||
"Acid Bucket"
|
||||
"Acid Bucket",
|
||||
{not_in_creative_inventory = 1}
|
||||
)
|
||||
|
||||
bucket.register_liquid(
|
||||
@ -187,7 +200,8 @@ bucket.register_liquid(
|
||||
"default:sand_flowing",
|
||||
"bucket:bucket_sand",
|
||||
"bucket_sand.png",
|
||||
"Sand Bucket"
|
||||
"Sand Bucket",
|
||||
{not_in_creative_inventory = 1}
|
||||
)
|
||||
|
||||
minetest.register_craft({
|
||||
|
BIN
minetestforfun_game/mods/bucket/textures/bucket_river_water.png
Normal file
BIN
minetestforfun_game/mods/bucket/textures/bucket_river_water.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 316 B |
@ -6,6 +6,9 @@ License:
|
||||
Copyright (C) xyz
|
||||
modified by BlockMen (iron bars)
|
||||
|
||||
Gambit (WTFPL):
|
||||
xpanes_bar.png
|
||||
|
||||
This program is free software. It comes without any warranty, to
|
||||
the extent permitted by applicable law. You can redistribute it
|
||||
and/or modify it under the terms of the Do What The Fuck You Want
|
||||
|
BIN
minetestforfun_game/mods/xpanes/textures/xpanes_bar.png
Executable file → Normal file
BIN
minetestforfun_game/mods/xpanes/textures/xpanes_bar.png
Executable file → Normal file
Binary file not shown.
Before Width: | Height: | Size: 383 B After Width: | Height: | Size: 180 B |
Loading…
Reference in New Issue
Block a user