blob: 8cffe01b84bd4346b16a51e6a630fc372fe39395 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
minetest.register_allow_player_inventory_action(function(player, action, inventory, info)
if info.stack:get_name() == "default:water" then
return 0
end
if info.stack:get_name() == "default:lava" then
return 5
end
return info.stack:get_count()
end)
|